[Issue 12096] Allow "body" to be used as an identifier

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 7 09:57:26 PST 2014


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


bearophile_hugs at eml.cc changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bearophile_hugs at eml.cc


--- Comment #1 from bearophile_hugs at eml.cc 2014-02-07 09:57:21 PST ---
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: -------


More information about the Digitalmars-d-bugs mailing list