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

Re: [ns] BayTcp files created?



On Tue, 12 Jun 2001, Brian Lee Bowers wrote:

> > The universal debug_ class variable may be of use here, not least
> > because it can be enabled on a per-object basis.
> >
> > 	if (debug_) {
> >
> > 	}
> 
> Except that the initialization is happening before there is an object 
> from which to get debug_.  This is an issue of a static variable (a 
> class variable) being initialized.
> 
> debug_ is an instance variable, unfortunately.

Oh, bother.

There's no global debug_ as well?

it would be nice to enable Tcl-level control of this sort of thing,
without requiring recompiles.

L.

#define anything bad! assert() bad! const good! bound good! OTcl good!

<L.Wood@surrey.ac.uk>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>