[Issue 14591] [SPEC] Ambiguity between extern(Pascal) and template value parameters

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Wed Apr 12 01:23:15 PDT 2017


https://issues.dlang.org/show_bug.cgi?id=14591

--- Comment #5 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #4)
> Or am I missing something here...

I don't think I am, because the parser is in the middle of QualifiedName, and
peeking the next character matches CallConvention, we can't know for sure
whether this is really a TypeFunctionNoReturn or the next TemplateArg.  So
backtracking is required if the first fails.

I'd like to avoid this backtracking.  Which as per first post, could either be
solved by adding a stop symbol to mark the end of a QualifiedName, or Pascal
should be given another identifier.

--


More information about the Digitalmars-d-bugs mailing list