this() const

Trass3r un at known.com
Sun Apr 15 13:07:22 PDT 2012


Am 15.04.2012, 21:20 Uhr, schrieb sclytrack <sclytrack at hotmail.com>:

>
> 	this( const size_t step) const
> 	{
> 		this.step = step;
> 	}
>
>
> Error: cannot modify const/immutable/inout expression this.step
>
>
> Is this the expected behavior? Thanks.

Yep.


More information about the Digitalmars-d-learn mailing list