CTFE is getting too powerful :o)
Timon Gehr
timon.gehr at gmx.ch
Wed Mar 27 15:02:29 PDT 2013
On 03/27/2013 05:55 PM, Timon Gehr wrote:
> ...
>
> - No mutable variables/fields are loaded or stored that were not
> allocated during the same CTFE execution.
>...
On second thought, probably loading of the value of initialized mutable
static variables should be allowed, so that it is easy to assemble
mutable object graphs at compile time. (it would still not be allowed to
modify the fields of referenced objects.)
More information about the Digitalmars-d
mailing list