When are associative arrays meant to throw a RangeError?

Daniel Murphy yebblies at nospamgmail.com
Sun Feb 19 07:05:20 PST 2012

"Ben Davis" <entheh at cantab.net> wrote in message 
news:jhr0qf$24sj$1 at digitalmars.com...
> On 19/02/2012 03:31, Daniel Murphy wrote:
>> Except for this magic initialization, AAs behave the same as classes - ie 
>> a
>> reference type.
> That's not quite true, because 'length' is passed around by value 
> alongside the reference, leading to semantics you could never reproduce 
> with classes, unless I'm mistaken.

AAs, not Arrays. 

More information about the Digitalmars-d mailing list