From CppNow 2013

Timothee Cour thelastmammoth at gmail.com
Wed Jun 12 10:58:04 PDT 2013


On Wed, Jun 12, 2013 at 9:16 AM, Jacob Carlborg <doob at me.com> wrote:

> On 2013-06-12 11:38, Timothee Cour wrote:
>
>  Pending DIP32 (Uniform tuple syntax), this could improve to:
>>          auto d=variant( {a=1,b="foo", c={1,2.2,"three"}} );
>>
>
> That looks a bit like my suggestion for anonymous structs:
>
> http://forum.dlang.org/thread/**kfbnuc$1cro$1@digitalmars.com<http://forum.dlang.org/thread/kfbnuc$1cro$1@digitalmars.com>
>
> --
> /Jacob Carlborg
>

Hi Jacob,
IIRC, I think your anonymous struct suggestion has more to do with DIP32,
and in fact DIP32 would make your anonymous structs work.
But yes, having such tuple notation would make everything nicer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.puremagic.com/pipermail/digitalmars-d/attachments/20130612/e2c55303/attachment.html>


More information about the Digitalmars-d mailing list