const(X) member of Y
Maxim Fomin
maxim at maxim-fomin.ru
Wed Feb 6 13:52:00 PST 2013
On Wednesday, 6 February 2013 at 21:28:33 UTC, Era Scarecrow
wrote:
>
> I considered that perhaps the writing was wrong and it would
> be 'this(const this)', however since this is a variable it's
> referring to the hidden first field who's type is automatically
> deduced. This means it can't be that way otherwise all the data
> is const and thereby the definition is disallowed (pointless),
> unless you'd wanted to only change something from the original
> array... which seems off.
>
but this(const this) is supported and means to be a constructor
More information about the Digitalmars-d
mailing list