const after initialization / pointers, references and values

Philippe Sigaud via Digitalmars-d digitalmars-d at puremagic.com
Thu Aug 21 06:14:47 PDT 2014


On Wed, Aug 20, 2014 at 11:49 PM, Jakob Ovrum via Digitalmars-d
<digitalmars-d at puremagic.com> wrote:
> Certainly the easiest, but I don't think it's always the best. If
> light-weightedness is desired, make the struct contain the reference,
> effectively making the struct a reference type

Well, yes. But the OP explicitly asked not to have to deal with pointers. So...


More information about the Digitalmars-d mailing list