[Issue 8162] [TDPL] -property fails to give an error when a property function is called with parens

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed May 30 10:47:46 PDT 2012


http://d.puremagic.com/issues/show_bug.cgi?id=8162



--- Comment #5 from Jonathan M Davis <jmdavisProg at gmx.com> 2012-05-30 10:48:49 PDT ---
> This bug has more serious consequences -- think properties that return
> callables -- 'o.property()' does not do what you expect it to do, instead you
> have to work-around with 'o.property()()', which doesn't really make sense.

That's one of the major reasons that @property was introduced - to disambiguate
when returning delegates. So, the fact that -property doesn't help with that at
all is a huge indicator that there's a major problem with it.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list