Remus

Namespace rswhite4 at googlemail.com
Wed Nov 21 06:55:36 PST 2012


It is a completly restart.
Hm, I don't know, a solution for 'final' should be this:
[code]
struct Final(T) {
private:
	T _val;
	
public:
	@disable
	this();
	
	this(T val) {
		this._val = val;
	}
	
	@disable
	ref typeof(this) opAssign(T val);
	
	@property
	inout(T) get() inout {
		return this._val;
	}
	
	alias get this;
}
[/code]
If you can write some use cases for this I will think about it.


More information about the Digitalmars-d-announce mailing list