[Issue 18100] crt_constructor not allow to init immutable

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Dec 23 09:55:35 UTC 2017


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

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |ibuclaw at gdcproject.org
         Resolution|---                         |WONTFIX

--- Comment #6 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Right, I think this should be wontfix also. Pragma just exposes low level
functionality that does not have any semantic guarantees in relation to the
rest of the language.

As per comment, you can use cast to write to immutable data, but you must
provide your own static (probably gshared) guard to prevent multiple
evaluation.

This has got nothing to do with "betterC", whatever that means.

--


More information about the Digitalmars-d-bugs mailing list