Subject: A question about procedures
From: ZB
Date: 11/13/2007 12:39:32 AM
As I understand, the procedure names are always seen in global scope? I mean:
#v+
tclsh8.5 [~]proc aaa {} { puts "Hey" }
tclsh8.5 [~]aaa
Hey
tclsh8.5 [~]proc bbb {} { proc ccc {} { puts "Hi" } ; ccc }
tclsh8.5 [~]aaa
Hey
tclsh8.5 [~]bbb
Hi
tclsh8.5 [~]ccc
Hi
tclsh8.5 [~]
#v-
So, although I was trying to set "local" procedure ccc, it'll be still
seen "outside"?
--
ZB
|