https://issues.dlang.org/show_bug.cgi?id=18100

Steven Schveighoffer <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Steven Schveighoffer <[email protected]> ---
I want to say this is WONTFIX.

remember that init1 is simply a function, it's not a static ctor. So if you
allowed it to rewrite immutable data, then something can call it later and mess
up the value.

If you want to do this, I think you need a cast. Not a tall order considering
there are no real guarantees from D on how this will work.

--

Reply via email to