[Issue 22769] `fun()` where fun is a property which returns an object with opCall should call opCall
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Feb 13 19:27:00 UTC 2022
https://issues.dlang.org/show_bug.cgi?id=22769
--- Comment #2 from Vladimir Panteleev <dlang-bugzilla at thecybershadow.net> ---
(In reply to Basile-z from comment #1)
> what is the background idea ?
Making @property do its job
> Is this proposal a way to have opCall called without explicit CallExp ?
No. () is the CallExp. It should be applied to the return value, not the
property. Without @property, the code should behave as it does now.
--
More information about the Digitalmars-d-bugs
mailing list