Head Const

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Thu Feb 18 02:47:57 PST 2016


On 18.02.2016 10:24, Walter Bright wrote:
> On 2/17/2016 11:58 PM, Timon Gehr wrote:
>> const(headconst(T)) is the same as const(T), no?
>
> Er, yes?

Jonathan wanted to embed a mutable reference count within a const 
object. Contrary to your suggestion, headconst won't help with that.


More information about the Digitalmars-d mailing list