D's Auto Decoding and You

Jack Stouffer via Digitalmars-d-announce digitalmars-d-announce at puremagic.com
Wed May 18 18:45:44 PDT 2016


On Wednesday, 18 May 2016 at 22:23:45 UTC, jmh530 wrote:
> Is this true of all @property functions?

No, this is purely a range thing where it's legal to have your 
front be a public member variable rather than a getter function.

> Should this be noted in the spec?

While somewhat supported in the language, at the end of the day 
ranges are library types, so no.

> Should it be an error?

No, people's code will error if they try to call a non callable 
anyway.


More information about the Digitalmars-d-announce mailing list