String literals have only one instance?

bearophile bearophileHUGS at lycos.com
Thu Aug 19 05:26:31 PDT 2010


Rory Mcguire:

> Are all string literals that have the same value initialized to the same 
> address?
> ...
> Can this be relied upon?

Probably a conforming D implementation is free to not give the same address to those.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list