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

Re: Is it a bug in route-proto.tcl?



> From: Gang Xu <[email protected]>
> Date: Tue, 30 Jun 1998 23:42:38 CDT

> In line 320 of route-proto.tcl:
> 
> 320: #Class Agent/rtProto -superclass Agent
> 321: ^
> 322: Agent/rtProto proc init-all args {
> 323:     error "No initialisation defined"
> 324: }
> 
> Why is line 320 commented? Is it a bug?

It is not a bug.

Agent/rtProto/DV is a SplitObject, and the TclClass constructor
for the instance of the helper class will instantiate the classes
Agent, Agent/rtProto, and Agent/rtProto/DV, as part of the C++
static initialisation.  Uncommenting line 320 will redefine the
class hierarchy.  This will leave Agent/rtProto/DV unparented,
and you'd not be able to create any instances of DV.   This would
not be a good thing :-)


Kannan

--
[email protected]
http://www.isi.edu/~kannan