AA default value?

Ary Borenszweig ary at esperanto.org.ar
Fri Jan 25 06:21:36 PST 2008


Janice Caron wrote:
> Wouldn't
> it be nicer if, instead, it simply returned
> 
> 	typeof(aa[key]).init
> 
> if the key was not present in the array?

But then you can't tell wheter the key was present and the value was 
init, or it was not present at all.



More information about the Digitalmars-d mailing list