Minimizing "reserved" words
Jacob Carlborg via Digitalmars-d
digitalmars-d at puremagic.com
Tue Nov 1 00:29:17 PDT 2016
On 2016-10-31 23:25, Jonathan M Davis via Digitalmars-d wrote:
> IMHO, it's just plain error-prone to allow for any of the built-in
> properties to be overridden, and it should be disallowed in all cases. We
> need to be able to rely on stuff like .init of .sizeof being the built-in
> property, or you're just going to get bugs - especially in generic code.
That might be the case. But why are they built-in properties from the
beginning. Compiler recognized free functions or __traits would not have
this problem.
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list