www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Re: Why I (Still) Won't Use D

Vladimir Panteleev Wrote:
 2) An empty array is equal to a null pointer. Yikes!

Could you bring a practical example of where this is a problem?

I had a program that'd make many recursive function calls. When done at each level, it'd add to an associative array and then return. Creating an AA and passing it into a function does not work, because an empty AA is null. Wrapping in another object or using a pointer the the array was needed to fix the issue.
Mar 27 2008