[Issue 1924] fail to pragma compile time constant
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Mar 14 07:44:19 PDT 2008
http://d.puremagic.com/issues/show_bug.cgi?id=1924
fvbommel at wxs.nl changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID
------- Comment #1 from fvbommel at wxs.nl 2008-03-14 09:44 -------
Your 'result' is a variable that happens not to get assigned at runtime, but
the fact that it happens not to change doesn't mean it's a constant.
P.S. According to the spec it even needs to be a string literal (which I don't
think is what the compiler implements, since I'm pretty sure it allows string
constants constructed by templates and ctfe). But either way your code is
clearly illegal.
--
More information about the Digitalmars-d-bugs
mailing list