On Tuesday, 1 April 2014 at 05:53:15 UTC, Walter Bright wrote:
On 3/31/2014 10:02 PM, Manu wrote:
It's a really common pattern, it's obviously very useful, but it's surprising to
me that people think that it's like, 'cool'.
I get why it's done, and it's cool that D can do this (I use it a lot in my
code), but I don't feel it's particularly elegant.

'alias this' is inelegant (sorry Andrei) but it was designed for precisely this purpose - being able to use a struct to wrap any other type, and forward to and override behaviors of that type. Nobody has found a better way.

There's any plan for implementing the multiple alias this?
---
Paolo

Reply via email to