Growing a Language (applicable to @attribute design)

Jonathan M Davis jmdavisProg at gmx.com
Wed Nov 14 02:32:12 PST 2012


On Wednesday, November 14, 2012 10:49:41 renoX wrote:
> That's not strictly true: type inference works better for
> built-in types than for user-defined types, with "auto x = 1;" x
> is an int, how do I have the same type of syntax for MyInt?
> AFAIK I can't, that's why I have mixed feelings towards type
> inference..

auto x = MyInt(1);

I don't see what's missing. What about type inference works better for built-
in types?

- Jonathan M Davis


More information about the Digitalmars-d mailing list