Mail Archives: djgpp/1998/02/06/02:31:50
In article <3 DOT 0 DOT 5 DOT 32 DOT 19980205125943 DOT 007b3180 AT math DOT amu DOT edu DOT pl>, Maciej
Radziejewski <maciejr AT math DOT amu DOT edu DOT pl> writes
>Perhaps it is too obvious to write, but isn't this accomplished in C++
>by defining a local scope and declaring the variables inside it?
>The variables will be destroyed upon leaving the local scope.
1st: they are only static if you mark them 'static'
2nd: static variables are not destroyed on leaving a scope (thats the
meaning of static after all!), only the name is hidden.
---
Paul Shirley: my email address is 'obvious'ly anti-spammed
- Raw text -