[Xotcl] xo beginner
Mads Linden
ml at electronicfarm.com
Sat Jun 25 03:08:40 CEST 2005
hi all
i am trying to learn XO....... so be nice :)
the question:
#####
Class Project
Project instproc init {} {
puts "INIT"
}
Project instproc getarg {value} {
puts "getarg : $value"
}
Project .p -getarg 1
#####
Since xotcl allow method call in the same line as the creation of the
instance I offcourse tried that out ==
This gives me
>> getarg : 1
>> INIT
I expected it to call the constructor (init) before method.
Regards
Mads
More information about the Xotcl
mailing list