For Programmers: Free Programming Magazines  


Home > Archive > Tcl > April 2007 > info globals behaves differently in 8.4.6 and 8.4.9









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author info globals behaves differently in 8.4.6 and 8.4.9
Sharad

2007-04-25, 8:06 am

Hi

I observed the following differences in the tcl versions 8.4.6 and
8.4.9:

TCL (8.4.6)
------------------
proc foo {} {
puts "-->[info globals PATH]-->"
global PATH
puts "-->[info globals PATH]-->"
}

% foo
% -->-->
% -->-->

TCL (8.4.9)
------------------
proc foo {} {
puts "-->[info globals PATH]-->"
global PATH
puts "-->[info globals PATH]-->"
}

% foo
% -->-->
% -->PATH-->

Can somebody help me out in understanding the difference - as to why
this change in behaviour.

Regards
Sharad

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com