Should AliasThis allow implicit conversion to the subtype AliasThis aliases to?

Dylan Knutson tcdknutson at gmail.com
Sat May 18 00:49:34 PDT 2013


oh my; one more typo (I really wish these forums had edit 
functionality)

struct definition:

----
struct IntPair {
	private int[] _pair;
	int left()  { return _pair[0]; }
	int right() { return _pair[1]; }
	alias _pair this;
}
----


More information about the Digitalmars-d mailing list