ReturnThis/@chain

Tomek Sowiński just at ask.me
Sat Jul 24 14:29:41 PDT 2010


dsimcha wrote:

> ...but on attempting to use it, it's rather useless in cases where you
> also want to provide a getter because:
> 
> 1.  You can't overload functions against templates, even in situations
> where this would be completely unambiguous (see bug 2972
> http://d.puremagic.com/issues/show_bug.cgi?id=2972).
> 
> 2.  If you make your getter also have a template this parameter, it
> doesn't work because your getter isn't returning this.

Hm.. getters.. I don't get it;) What are you trying to pull off with them 
(example)?

Tomek


More information about the Digitalmars-d mailing list