Feature Request: Keyword as identifier.
Stewart Gordon
smjg_1998 at yahoo.com
Fri Sep 29 14:35:01 PDT 2006
icee wrote:
> In C# we can use a keyword as a identifier by prefixing @
>
> Why?
> suppose we are using a extern C lib, the library exports a function as "int
> version()",
> so we write:
> extern(C) int version();
> this will obviously fail to compile, cos' version is a D keyword, (but not
> the C keyword.)
"cos'"?
> so we have no methods except modify the C code and re-compile it.
See also my proposal for an alternative solution:
http://tinyurl.com/gsan2
Stewart.
--
-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS/M d- s:-@ C++@ a->--- UB@ P+ L E@ W++@ N+++ o K-@ w++@ O? M V? PS-
PE- Y? PGP- t- 5? X? R b DI? D G e++++ h-- r-- !y
------END GEEK CODE BLOCK------
My e-mail is valid but not my primary mailbox. Please keep replies on
the 'group where everyone may benefit.
More information about the Digitalmars-d
mailing list