auto -> auto & var

Derek Parnell derek at psych.ward
Fri Mar 10 16:38:26 PST 2006


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.



-- 
Derek Parnell
Melbourne, Australia



More information about the Digitalmars-d mailing list