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

Re: Tcl problem & gen-map



> ###################################################
> Simulator instproc gen-map {} {
> 	# Did you ever see such uglier code? duh?
> 	#
> 
> 	$self instvar Node_ link_ MobileNode_
> 
> 	set nn [Node set nn_]> 
> ####################################################
> 
> Maybe there is an error because one time Node_ is used
> and another time it is Node ? I don't know enough internals
> to debug it.

The second time it's referring to the Node class. But two lines below:

                if ![info exists Node($i)] {
                        incr i
                        continue
                }

I think this should  really be Node_($i). Try change this and see if it
works. 

- Haobo