[:] as empty associative array literal, plus warning for null

Jonathan M Davis jmdavisProg at gmx.com
Fri Jul 5 02:32:23 PDT 2013


On Friday, July 05, 2013 10:26:09 Regan Heath wrote:
> I think it is simpler to think of arrays as a struct with 2 members (ptr
> and length) and this struct is/as a value type.  Then it all simply makes
> sense.

I'm not saying that it can't be understood. It's just that the semantics are a 
bit unique, and while it works just fine, it does tend to cause confusion for 
many people (at least at first).

- Jonathan M Davis


More information about the Digitalmars-d mailing list