[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

No Subject



Hi,

thanks for sending me your notes on the Ns manual,
they'll be of great help to me; 
anyway, reading those notes some other questions came
to my mind...
i hope i am not boring too much  : )

" set tcp [Agent/TCP/Reno] " triggers the execution of
the procedures "init" and "new"

-------------------------------------------------------
SplitObject instproc init args {
      $self next
	if [catch "$self create-shadow $args"] {
	........................................
}


* In the "create-shadow" procedure invoked in "init" ,
the object of invocation used belongs to the Object
class, why not to the SplitObject one ?

* "create_shadow" invokes TclObject* create passing
"create-shadow" as an argument, what is the 
use of this ?
-------------------------------------------------------

Presumably, "new" is invoked after "init" (right ?)
 
proc new { className args } {
      set o [SplitObject getid]
	if [catch "$className create $o $args" msg] {
	.............................................
	return $o
}


* Where is this "create" procedure defined ? i
couldn't find it using the "grep" command 
(which i am fond of too)

* The Ns manual says that this function (create)
triggers the execution of the TclObject* create method
(defined in RenoTcpClass)
HOW MANY TIMES IS THE TclObject* create PROCEDURE
INVOKED ?
It seems we have:

init ---> create_shadow ---> TclObject* create

and then

new --->create (??) ---> ---??????????---> 
TclObject* create

How can this be explained ?


Thanks in advance,
                      Andrea.


______________________________________________________________________
Do You Yahoo!?
Il tuo indirizzo gratis e per sempre @yahoo.it su http://mail.yahoo.it