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

Re: NS-2



On Wed, 08 Jul 1998 11:23:20 PDT, Polly Huang wrote: 
>...
>The way 'proc done{}' works is tricky.  I'm cc'ing this to the ns-user
>list so others can elaborate more on this subject.
>...

Examples about how to use proc done {}  are in
tcl/ex/{many_tcp,rbp_demo}.tcl and tcl/http/http.tcl.

It's only tricky in the sense that it's often instantiated per-object.
I.e.,
	set t [new Agent/TCP]
	$t proc done {} { puts "t is done" }
(as opposed to
	Agent/TCP instproc done {} { puts "someone is done" }
)
C++ doesn't have per-object methods.

   -John Heidemann