Official DMD compiler written in D
Dmitry Olshansky
dmitry.olsh at gmail.com
Thu Jan 10 14:02:16 PST 2013
11-Jan-2013 00:49, Era Scarecrow пишет:
> On Thursday, 10 January 2013 at 20:48:12 UTC, Era Scarecrow wrote:
>
>> func(x); // x is not type string[string], is type xxx!string,string
>
> Thinking about it, if the AA is just syntactical sugar for a struct
> (say defined in core.memory) which handles that then the problem goes away.
+ user defined implicit conversion so that AALiteral(K,V)
--*implicitly*!--> AA!(K,V)
The other use case for user-defined implicit conversion were already
outlined before so I hope it will make its way in one day.
--
Dmitry Olshansky
More information about the Digitalmars-d
mailing list