[Issue 1599] compile time evaluation with immutable problem

2015-06-08 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=1599

Andrei Alexandrescu and...@erdani.com changed:

   What|Removed |Added

Version|2.006   |D2

--


[Issue 1599] compile time evaluation with immutable problem

2012-11-12 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1599


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||INVALID


--- Comment #2 from Don clugd...@yahoo.com.au 2012-11-12 07:14:59 PST ---
template foo(A...) { immutable(char)[] foo = A[0]; }
static assert(foo!(a) == a);

vug.d(2): Error: variable foo cannot be read at compile time
vug.d(2):while evaluating: static assert(foo == a)


This is because foo is a mutable run-time array of immutable(char). Not a bug.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---


[Issue 1599] compile time evaluation with immutable problem

2011-04-14 Thread d-bugmail
http://d.puremagic.com/issues/show_bug.cgi?id=1599


Don clugd...@yahoo.com.au changed:

   What|Removed |Added

 CC||clugd...@yahoo.com.au
Summary|compile time evaluation |compile time evaluation
   |with invariant problem  |with immutable problem


--- Comment #1 from Don clugd...@yahoo.com.au 2011-04-14 15:30:31 PDT ---
The compiler doesn't give the normal 'invariant is deprecated' error message
for the first case. I think it's not running semantic() on it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
--- You are receiving this mail because: ---