[Issue 15471] Show example of associative array initialization in documentation

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Dec 23 13:16:18 PST 2015


https://issues.dlang.org/show_bug.cgi?id=15471

bb.temp at gmx.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bb.temp at gmx.com

--- Comment #1 from bb.temp at gmx.com ---
(In reply to Mark Isaacson from comment #0)
> We need an example of how to initialize associative arrays in the
> documentation at http://dlang.org/spec/hash-map.html
> 
> I look this up fairly frequently and it's just not readily searchable.
> Eventually I'll try to find time to fix this myself, but, it may be a while.

Since there already a paragraph named "Runtime Initialization of Immutable AAs"
I assume you speak about the 'AssocArrayLiteral' construct. Currently there's
only a description in the grammar:

http://dlang.org/spec/grammar.html#KeyValuePairs

--


More information about the Digitalmars-d-bugs mailing list