https://d.puremagic.com/issues/show_bug.cgi?id=12096
Summary: Allow "body" to be used as an identifier
Product: D
Version: D2
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: DMD
AssignedTo: nobody puremagic.com
ReportedBy: schuetzm gmx.net
https://d.puremagic.com/issues/show_bug.cgi?id=12096
bearophile_hugs eml.cc changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bearophile_hugs eml.cc
Andrej Mitrovic suggests to improve the error messages instead:
void main()
{
int body;
}
test.d(5): Error: Cannot use keyword 'body' as a symbol name. Try to use
`body_` instead.
It seems an acceptable solution.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
https://d.puremagic.com/issues/show_bug.cgi?id=12096
Walter Bright <bugzilla digitalmars.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bugzilla digitalmars.com
14:44:20 PST ---
In hindsight, the choice of 'body' for the keyword is unfortunate. But fixing
it would cause even worse problems, so I think we're stuck with it.
--
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------