DIP44: scope(class) and scope(struct)
H. S. Teoh
hsteoh at quickfur.ath.cx
Fri Aug 23 17:52:46 PDT 2013
On Sat, Aug 24, 2013 at 02:48:45AM +0200, Andrej Mitrovic wrote:
> On Saturday, 24 August 2013 at 00:45:46 UTC, H. S. Teoh wrote:
> >Destroy! ;-)
>
> I won't destroy but I'll say avoid the struct/class keywords and use
> `scope(this)` instead, it looks nicer and will work easier in
> generic code.
Good point! I'll update the DIP to use scope(this) instead. It does look
nicer. And yes, it's important for generic code. :)
T
--
Nothing in the world is more distasteful to a man than to take the path
that leads to himself. -- Herman Hesse
More information about the Digitalmars-d
mailing list