[Xotcl] proper way to access xotcl classes

Vasiljevic Zoran zv at archiware.com
Thu May 8 18:14:10 CEST 2008


On 08.05.2008, at 18:02, Matthew Smith wrote:

> set s1 [Stack new]
>
> s1 push a
> s1 push b
>
> set x [s1 pop]
> puts "The popped value is $x"

Try this:

Stack s1

s1 push a
s1 push b

set x [s1 pop]
puts "The popped value is $x"



More information about the Xotcl mailing list