property syntax strawman

Benji Smith dlanguage at benjismith.net
Mon Aug 3 19:13:47 PDT 2009


Steven Schveighoffer wrote:
> On Mon, 03 Aug 2009 11:18:26 -0400, Daniel Keep 
> <daniel.keep.lists at gmail.com> wrote:
>> You can't trivially disambiguate between the getter and the setter with
>> the current system, either.  How is this a new issue?
> 
> You can't *trivially* but you can do it (that's another issue that 
> probably should be addressed in general for overloaded functions).  

Agreed. I don't think this is so much an issue with properties as it's 
an issue with overloads. A good solution that works really well for 
overloads will work well for properties too.


>> Besides which, why can't you just add this:
>>
>>   __traits(getter, aggregate.property)
>>
>> Problem solved.
> 
> That works too.  That's probably the most sensable solution I've seen.  
> Has my vote.
> 
> -Steve

Me too.

--b



More information about the Digitalmars-d mailing list