Declare reference to variable ?

Namespace rswhite4 at googlemail.com
Mon Jul 29 23:50:25 PDT 2013


Alternative:

----
import std.stdio;

struct S {
	uint longnamed;
	
	alias longnamed this;
}

void main() {
	S somestruct;

	alias v = somestruct;
	writeln(v);
	v++;
	writeln(v);
}
----


More information about the Digitalmars-d-learn mailing list