Import conflict resoultion
kris
foo at bar.com
Thu Jul 13 16:21:26 PDT 2006
Jeremy wrote:
> Doesn't the "import a.b.c : a;" syntax break the context-free parsing thingy? I
> don't know much about it, but couldn't the colon get confused with the colon in
> "a = b ? 1 : 2;" stuff?
>
> - jeremy
>
>
Unlikely. The ":" or "as" or whatever is simply /noise/ -- something
that is primarily optional for the underlying parser. It does depend on
the parser, but DMD is an RD variety so can handle it without issue. In
other words, whatever goes in there is not really a keyword in the
traditional sense?
More information about the Digitalmars-d
mailing list