Fixing D's Properties

Bill Baxter dnewsgroup at billbaxter.com
Fri Aug 17 13:44:27 PDT 2007


Sean Kelly wrote:
> Bill Baxter wrote:
>> Sean Kelly wrote:
>>> Chad J wrote:
>>>>
>>>> This post is a bit lengthy.  So assuming you've read even part of 
>>>> it, thank you for your time.
>>>
>>> All good points.  I'd like properties in D to address them all 
>>> somehow.  The 'ref' keyword in 2.0 solves some of the issues, but not 
>>> others. If doing so requires a special syntax then I'm all for it.
>>
>> What issues does ref fix?  You can't return a ref even in 2.0, AFAIK.
> 
> Oh.  I assume this is a planned feature then?  

I hope so.  That would be great.

> Otherwise I see little 
> reason to change "inout" to "ref."

I thought the reason was more to do with const.  Given a const object 
passed by reference, calling it 'inout' doesn't make much sense.

--bb



More information about the Digitalmars-d mailing list