[Issue 21756] Immutable array literals cause runtime GC allocation instead of static readonly section allocation

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Mar 31 18:23:45 UTC 2021


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

Basile-z <b2.temp at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |b2.temp at gmx.com

--- Comment #2 from Basile-z <b2.temp at gmx.com> ---
cast(immutable) could do that. Under the hood a hidden static immutable would
be created.

--


More information about the Digitalmars-d-bugs mailing list