[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] problems with "create" functionS
Hi all,
i have some problems (due partly to my tcl/c++
ignorance) in understanding how a new SplitObject is
created:
taking as example the one quoted in the ns manual:
set srm [new Agent/SRM/Adaptive]
................................
>From ~tclcl/tcl-object.tcl
proc new { className args } {
set o [SplitObject getid]
if [catch "$className create $o $args" msg]
..............................................
*) The manual says that the "create" procedure
referred to in the code is the one defined on the c++
side for the classes derived from TclClass
TclObject* create(int argc, const char*const* argv)
How is it possible ? is there an invocation to the
command method ?
Thanks in advance,
Andrea.
______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it