auto used as scope

Dan murpsoft at hotmail.com
Sat Apr 21 10:21:07 PDT 2007


Martin Persenius Wrote:

> Right, thank you. But what is the rationale behind making the first case call the dtor as if "auto [classname] [variablename]" was using 'scope'? The others, including the quoted example, do not, This is inconsistent and non-intuitive. Just want to understand.

I think it means that:

'auto' - the type is automatically detected.
'scope' - the data is stored on the stack, and will be lost with the scope.




More information about the Digitalmars-d mailing list