auto -> auto & var

Tom Tom_member at pathlink.com
Fri Mar 10 19:22:46 PST 2006


In article <op.s5732cfb6b8z09 at ginger>, Derek Parnell says...
>
>On Sat, 11 Mar 2006 09:20:25 +1100, Kramer <Kramer_member at pathlink.com>  
>wrote:
>
>> In article <dussar$2ihn$1 at digitaldaemon.com>, Nils Hensel says...
>>>
>>> Kramer schrieb:
>>>> I don't know if anyone else agrees, but I wouldn't mind seeing auto's  
>>>> uses
>>>> properly split:
>>>>
>>>> var -> type inference
>>>> auto -> RAII
>>>
>>> Certainly gets my vote.
>>>
>>> Nils
>>
>>
>> Or another alternative to minimize disruption for current auto use for  
>> type
>> inference:
>>
>> auto -> type inference
>> local -> RAII (I think I've seen this proposed before for RAII as well  
>> before)
>
>I don't care so long as 'auto' is not used to mean both. This is just such  
>an obvious wart in the language. Currently the language prevents one from  
>declaring a type-infered variable that is also RAII.

Agree :o (I didn't realize that before). Serious issue.

Tom;



More information about the Digitalmars-d mailing list