28 Ott 2002
Costruzione di Interfacce - Paolo Cignoni
Local Storage
v{
int
myInteger; // memory for an integer allocated
// ...
myInteger is used here ...
Bar bar; // memory for instance of class Bar
allocated
// ... bar is used here ...
}
v‘{’ e ‘}’ sono
i delimitatori di un blocco in c++, Non č detto che
corrisponda ad una funzione…
vNon possiamo
usare bar, o myInteger fuori dallo scope del blocco!