[Xotcl] init Constructor
Maksym Zinchenko
siqsuruq at gmail.com
Sat May 25 22:12:13 CEST 2024
Hello, is it possible to pass data to init constructor in NX? For example
smth like that:
nx::Class create hello {
> :method init {args} {
> if {[llength $args] > 0} {
> foreach name $args { puts "Hello: $name" }
> }
> }
> }
>
> ::hello create helloObj [list Bruno Pedro]
>
Without using properties, because I want to set up properties from init
method.
Thank you
More information about the Xotcl
mailing list