Is @property implementable?

Jonathan M Davis jmdavisProg at gmx.com
Wed Mar 2 21:21:53 PST 2011


On Wednesday 02 March 2011 21:09:09 Bekenn wrote:
> On 3/2/2011 8:41 PM, Jonathan M Davis wrote:
> > Uniform Function Call Syntax. It means that _any_ type could have
> > functions called on it as if they were member functions of that type.
> > e.g.
> 
> OK, thanks.
> 
> This sounds like the sort of thing that should require an annotation in
> the declaration...

Well, it wouldn't be universal then. For a function to be treated as a property, 
it would require an annotation, but universal function call syntax isn't 
supposed to require an annotation any more than calling a function on an array 
as if it were a member function requires an annotation. It's supposed to work 
with any function.

- Jonathan M davis


More information about the Digitalmars-d mailing list