Re: alias this for inheritance

2011-02-23 Thread Steven Schveighoffer
On Wed, 23 Feb 2011 10:34:04 -0500, spir wrote: Hello, I have read several times that alias this is a way to implement inheritance for structs. I am simply unable to imagine how to use this feature that way. Has anyone an example? It allows *some* simulation of inheritance. However, it

alias this for inheritance

2011-02-23 Thread spir
Hello, I have read several times that alias this is a way to implement inheritance for structs. I am simply unable to imagine how to use this feature that way. Has anyone an example? As I understand it, alias this constructs a proxy that delegates some or all of of its behaviour to its 'alia