[Issue 8161] give an error for invalid property functions
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jun 18 12:34:05 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=8161
Nick Treleaven <nick at geany.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |accepts-invalid
--- Comment #14 from Nick Treleaven <nick at geany.org> ---
> 1. It affects the result of typeof (the result is the type of the return value if @property is used, whereas it's the type of the function if @property isn't used).
This alone makes it an important feature.
> The odds are very high that when Walter and Andrei finally get around to deciding what to do with @property that they will simply decide to deprecate it and remove it from the language
That would break much code significantly due to the above feature. AIUI there
is no way the current language can simulate that feature.
I remind you again that this issue has nothing to do with optional parenthesis.
--
More information about the Digitalmars-d-bugs
mailing list