AliasSeq of T.tupleof for class and all base classes
    bitwise 
    bitwise.pvt at gmail.com
       
    Sat Sep 30 14:59:51 UTC 2017
    
    
  
On Saturday, 30 September 2017 at 12:42:17 UTC, Steven 
Schveighoffer wrote:
>
> I think the problem may be that derived classes' tupleof has 
> some of the same variables as the base class?
>
> I agree it should work, but I think if it did work, it may not 
> be what you want. You would see a lot of repeats.
.tupleof doesn't return fields from base classes.
assert(D2.tupleof.stringof == "tuple(c)");
    
    
More information about the Digitalmars-d-learn
mailing list