@property usage

uri via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Tue Dec 9 01:13:18 PST 2014


On Tuesday, 9 December 2014 at 07:31:21 UTC, Nicholas Londey 
wrote:
>> as this can break some invalid code (the code where people 
>> using
>> properties as functions)
>
> Does @property ever make sense for a free floating function? I 
> would have thought no but was recently asked to add it if using 
> the function with uniform call syntax.
>
> https://github.com/D-Programming-Language/dub/pull/455#discussion_r21430311

After a quick grep I see phobos uses quite a few free floating 
@property...



More information about the Digitalmars-d-learn mailing list