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.
RE: Null Pointers
by Anonymous on Thu 22nd Apr 2004 21:45 UTC


I has been reading the heat thread of Marcus Sundman vs. J.F.
and I have to say that both have some good points. please people clam down.

I had thougth a solution for having an array the way is seams to be inplemented in D that could handle both a null state and an empty state (I also think that there are times where you want to make them different and so not a satrange case at all). and the solution seams simple to me:

We only have to make by convention that if the data pointer is empty and the length is 0 the string is empty, but if the data pointer is empty and the length is not 0 (could be a convention like 0XFFFF or not) then the array is null.