Linked by Owen Anderson on Mon 19th Apr 2004 05:43 UTC
General Development For years the development scene has been dominated by the C family of languages, primarily C itself and its immediate successor C++. Recent years have given rise to other C-descendents, however, such as Sun's Java and Microsoft's C#.
Permalink for comment
To read all comments associated with this story, please click here.
They are strings not null pointers
by Brian Hunt on Fri 23rd Apr 2004 20:16 UTC

Your arguement about the whole sting thing is off because you are thinking in C. string a = null; doesn't really work with strings in this language because strings aren't pointers. I think it will treat it as a = null the same way as n = "". Also a = "" doesn't translate in to a[0]= '', since strings are not null terminated, it is a string with a length of 0. For your example, how do you tell if someone types in a null or a zero length array for their password?