Creating an array of user-defined structs

brian via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Aug 22 00:00:23 PDT 2016


On Monday, 22 August 2016 at 06:19:00 UTC, Mike Parker wrote:
> Terminology wise, we distinguish between associative arrays 
> (AA) and arrays. The former should never simply be called 
> 'array', otherwise people will assume you are referring to 
> either or both of foo[] (dynamic array/slice) or foo[N] (where 
> N is an integer constant, a static array). Change your title to 
> 'Creating an AA of user-defined structs' and the 
> misunderstanding goes away.

That's a terribly confusing naming convention for beginners then! 
:P
Is this D-specific terminology, or is this a more general 
convention that AA are not actually arrays?
This might help my understanding of when to use or not use one or 
the other. :)


More information about the Digitalmars-d-learn mailing list