Steven Schveighoffer wrote:
"Christopher Wright" wroteSteven Schveighoffer wrote:Not exactly ;) The wrapped type is not equivalent to inheritance.No, exactly:class Wrapper(T) : T { T opDot() {} }class Wrapper(T) : T { } works just as good ;)-Steve
True, but with opDot, you can swap out the real value. I can think of cases in which this would be useful -- a sort of "I'll fill in this value later" thing.