(emulating) weak typing and some other things

bearophile bearophileHUGS at lycos.com
Fri Dec 20 10:14:45 PST 2013


seany:

> thank you for your patience

Beside using Variant or Alebraic, some of your cases can be 
handled with a "alias this" plus some manual code.

struct Foo1 {
     int x;
}

struct Foo2 {
     Foo1 f;
     int y;
     alias f this;
}

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list