[Issue 11823] ddoc: built-in symbols with leading underscore should be specially parsed

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Feb 1 06:37:37 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=11823



--- Comment #4 from Kenji Hara <k.hara.pg at gmail.com> 2014-02-01 06:37:33 PST ---
(In reply to comment #3)
> (In reply to comment #2)
> > I'm not sure this is the right approach. An alternative is to recognize
> > __FILE__, etc., as special.
> 
> Well according to the spec compiler-reserved symbols start with double
> underscores, so I picked that approach. I guess we could instead implement an
> isBuiltinSymbol check?

Even if double-underscored symbols are reserved in language spec, users can use
them in their own own responsibility. (currently dmd does not reject defining
such names). Therefore I think isBuiltinSymbol check would be better, because
it is more conservative way.

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list