A simple question

Rob T rob at ucora.com
Thu Nov 15 22:42:11 PST 2012


On Friday, 16 November 2012 at 04:26:31 UTC, jerro wrote:
>> I found it surprising or unintuitive that the !() is required, 
>> and I do want to know what is the reasoning behind it
>
> I don't know whether the language could be changed to support 
> code like:
>
> struct Foo(){}
> Foo foo;
>
> but doing that certainly would introduce some ambiguities. For 
> example, consider this line:
>
> alias Foo Bar;
>
> Should Bar be a template or an instance of a template here?

OK, now it makes sense, I figured there had to be a reason for 
the !(). Thanks for letting me know.

--rt


More information about the Digitalmars-d mailing list