Question about RAII.

Sean Kelly sean at f4.ca
Wed Jul 5 08:20:12 PDT 2006


Derek Parnell wrote:
> On Wed, 05 Jul 2006 01:36:54 +0100, Bruno Medeiros wrote:
> 
>> Derek Parnell wrote:
>>
>> I'm not sure if you're just asking that without regards to the previous 
>> code, you're if asking that because you may have misunderstood the 
>> previous code.
> 
> Yep. I did misunderstand. My mistake, but I can see the 'trick' now. Is
> this method endorsed by Walter or is this just an artifact of the RAII
> implementation?

The latter I think.  Walter has said in the past that the compiler is 
free to allocate auto variables on the stack, it just isn't required.


Sean



More information about the Digitalmars-d mailing list