shouting versus dotting
Benji Smith
dlanguage at benjismith.net
Mon Oct 6 03:45:59 PDT 2008
Jarrett Billingsley wrote:
> On Sun, Oct 5, 2008 at 8:57 PM, Chris R. Miller
> <lordsauronthegreat at gmail.com> wrote:
>> The !() syntax seems to serve only as a heads up that it's a template.
>> Otherwise (as far as I can tell) a simple foo(int)(bar, baaz) would work
>> just as well as foo!(int)(bar, baaz).
>>
>
> Unambiguous grammar, you fail it.
>
> foo(bar)(baz); // template instantiation or a chained call?
>
> This _can_ be _made_ to work, but it would mean that the parse tree
> would be dependent upon semantic analysis, and that just makes things
> slow and awful. I.e. C++.
I'd be happy to get rid of OpCall, which I've always found confusing and
pointless.
--benji
More information about the Digitalmars-d
mailing list