[tcljava-user] Restrict to change global variable value
Brought to you by:
mdejong
From: mallick c. <mal...@ya...> - 2007-09-10 15:33:06
|
Hi I have set a global variable in my interpreter. I have extended few commands implementing tcl.lang.Command, in which i access the global variable and and use the value. At the same time I have given provision for TCL scripts loading through source command. In order to access global variable , we have to specify global <variable> in proc.. Any user can write proc command and load the script in my system, in the proc command user can change the value of global variable. Futher all my other command will faile which are using this global variable. How can I restrict the changing of global variable which was set through programatically while initializing the interpreter? Any help , i will be very thankful. regards Mallick ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting |