On Monday, 29 December 2014 at 16:09:33 UTC, Daniel N wrote:
On Monday, 29 December 2014 at 16:03:41 UTC, Julian Kranz wrote:
On Monday, 29 December 2014 at 15:53:25 UTC, Steven
Schveighoffer wrote:
The compiler can infer attributes if a function is a
template. Not all attributes, but some of them.
-Steve
Ah, thanks, this explains it ;-). However, it's kind of uncool
that this only works for templates...
If you wish to dig into the details, there's a free ebook with
a good explanation here:
http://ddili.org/ders/d.en/index.html
Search for "this template parameters for member functions" in
http://ddili.org/ders/d.en/templates_more.html
Thank you, I should do that :-) Actually, I've read "The D
Programming Language" so time ago...