Make a variable single-assignment?

Alex Rønne Petersen xtzgzorex at gmail.com
Mon Nov 21 07:25:54 PST 2011


On 21-11-2011 15:48, Trass3r wrote:
> Don't think so.
> You could also wrap it in a struct with disabled opAssign, but this
> would also change the type.

Perhaps allowing 'final' on fields and locals would be a nice way to 
gain this effect...

- Alex


More information about the Digitalmars-d-learn mailing list