[Issue 1075] dmd reject valid code

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 21 16:29:21 PDT 2007


http://d.puremagic.com/issues/show_bug.cgi?id=1075


fvbommel at wxs.nl changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|INVALID                     |




------- Comment #2 from fvbommel at wxs.nl  2007-03-21 18:29 -------
(From comment #0)
>         static char[] c(){return "whateever;";}

(In reply to comment #1)
> Static strings can be modified at runtime, which is why this isn't compilable
> (it must be known at compile time). Try doing static const char[] instead, that
> should work.

That's not a static string, that's a static method he's trying to use for
CTFE...

(Reopening not because I'm sure this should be allowed, but because it was IMHO
closed for the wrong reason)


-- 



More information about the Digitalmars-d-bugs mailing list