More magical AA semantics

monarch_dodra monarchdodra at gmail.com
Sat Jan 12 04:46:57 PST 2013


On Saturday, 12 January 2013 at 12:41:12 UTC, Jonathan M Davis 
wrote:
>
> My gripe with
> something like ++a[0] working when there's no a[0] is that 
> you'd be adding to
> an element that doesn't exist yet.
>
> - Jonathan M Davis

Not to mention, if "++" throws, I bet you'd insert T.init in 
a[0]. I don't see it behaving any other way.


More information about the Digitalmars-d mailing list