Thread: TCL Globals
View Single Post
Old 19th June 2006, 08:43 PM   #1
conzar
Member
Advanced member
 
conzar's Avatar
 
Join Date: May 2006
Posts: 36
Question (Solved) TCL Globals

I'm having trouble using global variables in tcl.

Here is an example of my problem

Code:
proc test {}{
    global PI
    set PI 3.14
    test2
}

proc test2 {}{
    puts $PI
}
Whats wrong with this? Or does AC3D use an interpreter that doesn't allow globals?

Last edited by conzar; 19th June 2006 at 09:34 PM.
conzar is offline   Reply With Quote