[Xotcl] parameters to keep Class objects
Maksym Zinchenko
siqsuruq at gmail.com
Tue Sep 12 01:52:05 CEST 2023
Hello, can I use parameters to keep Class objects? Like this:
package require nx
>
> nx::Class create a {
> :public method hmmm {} {
> return "Hmmmm!!!"
> }
> }
>
> nx::Class create b {
> :method init {} {
> set :aObj [a new]
> }
>
> :public method saysmth {} {
> puts "Hello!? [${:aObj} hmmm]"
> }
> }
>
> ::b create bobj
> ::bobj saysmth
>
Is it possible that it will not be set if I create my "bobj" from init.tcl
in Naviserver at startup?
Thank you in advance
More information about the Xotcl
mailing list