[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ns] global variable





> -----Original Message-----
> From:	Kai Li [SMTP:[email protected]]
> Sent:	Thursday, July 26, 2001 2:02 AM
> To:	[email protected]
> Cc:	[email protected]
> Subject:	[ns] global variable
> 
> hi,Dutta!
> 
> Thanx your reply.
> 
> But I mean I want to define a global variable in C++ code, so that my mac layer 
> and net-if layer will both use the same one?
> 
> Thanx a lot for your help.
> 
> - Kai
	[Neundorf Alexander]  

	Use a static member variable of one class, or use the singleton design pattern, I'd say.

	Bye
	Alex