DMD 1.014 release
Bruno Medeiros
brunodomedeiros+spam at com.gmail
Tue May 1 04:26:37 PDT 2007
Walter Bright wrote:
> Sports associative array literals, and struct literals. This enables
> compile time function execution to work with symbol tables (AA's) and
> user defined types.
>
> http://www.digitalmars.com/d/changelog.html
>
> http://ftp.digitalmars.com/dmd.1.014.zip
"If any of the keys or values in the KeyValuePairs are an
ExpressionTuple, then the elements of the ExpressionTuple are inserted
as arguments in place of the tuple. "
Can you give an example of that? I was thinking of something like:
int[char[]] f;
f = [ Tuple!(["one"[]:1, "two":2]) ];
but it didn't work.
--
Bruno Medeiros - MSc in CS/E student
http://www.prowiki.org/wiki4d/wiki.cgi?BrunoMedeiros#D
More information about the Digitalmars-d-announce
mailing list