A few considerations on garbage collection
Orvid King via Digitalmars-d
digitalmars-d at puremagic.com
Mon May 5 07:31:08 PDT 2014
On 5/4/14, Marco Leise via Digitalmars-d <digitalmars-d at puremagic.com> wrote:
> Would that affect all arrays, only arrays containing structs
> or only affect arrays containing structs with dtors?
>
> printf("hello\n".ptr);
>
> should still work after all.
>
That should work independent of what the GC decides to do, as it
should be getting emitted as a literal pointer to "hello\n" in the RO
data-segment.
More information about the Digitalmars-d
mailing list