Why I (Still) Won't Use D
Jason House
jason.james.house at gmail.com
Thu Mar 27 11:44:52 PDT 2008
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.
More information about the Digitalmars-d
mailing list