On Thursday, 8 December 2016 at 16:54:57 UTC, Adam D. Ruppe wrote:
On Thursday, 8 December 2016 at 16:53:13 UTC, Satoshi wrote:
is there any advantage of marking function as @property??

Not really. I think it just changes the meaning of typeof(thatfunc) but otherwise it does nothing.

However, if you use it in a base class, you must also use it when overriding the function.

it does when you add it to for example a struct with alias opCall this.
reported it as a bug
https://issues.dlang.org/show_bug.cgi?id=16951

but seems to be addressed by https://wiki.dlang.org/DIP23

Reply via email to