19-Sep-2014 02:16, bearophile пишет:
IgorStepanov:
Do you ask about alias this or about it multiple usage. Multiple usage
is similar to single, but multiple:)
I meant the multiple usage. And none of your examples here are use cases
:-( I'd like to see one use case, or more.
For instance one could implement OOP and polymorphism on structs, all in
library code.
struct Base { .... }
struct Itnerface { .... }
struct Derived{
Base _super;
Interface _iface;
alias this _super;
alias this _iface;
}
I recall trying something like that but stopping because I needed
multiple alias this.
--
Dmitry Olshansky