Head Const

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 18 16:45:00 PST 2016


On 2/18/2016 6:04 AM, Marc Schütz wrote:
> Rule 2 only forbids _static immutables_ with @mutable members, precisely because
> those could end up in read-only memory. I don't see how allocators are affected
> at all. An allocator would be mutable, or at least manage mutable memory.

You could create a bunch of immutable data structures, then make the page they 
are in read-only.



More information about the Digitalmars-d mailing list