July 24, 2010 Re: ReturnThis/@chain | ||||
|---|---|---|---|---|
| ||||
Posted in reply to dsimcha | 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
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply