[DGD] Accessing local variables of identical names
Robert Forshaw
iouswuoibev at hotmail.com
Sun Mar 6 18:55:01 CET 2005
Say I have two local variables declared within two seperate blocks of code,
one embedded within the other:
while() {
int i;
while() {
int i;
}
}
When refering to variable "i" it accesses the variable that was declared
within either respective context.
My question is, is it possible to access the outer variable i from within
the inner block, instead of the variable i declared within that block, and
if so, how?
_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger
More information about the DGD
mailing list