Variable no-shadowing problems

Xinok xnknet at gmail.com
Fri Dec 22 22:29:50 PST 2006


It may not be the most desirable solution, but you could create a nested function
to 'shadow' names.

int main(){
	int i;
	void func(){
		int i;
	}
	func();
}



More information about the Digitalmars-d mailing list