Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is it possible to dynamically load an itcl method?

Status
Not open for further replies.

zombieZero

Technical User
Apr 7, 2004
28
US
Sorry if this is a simple question, but I just can't figure out how to do it (if there is actually even a way to do it). Here's what I'm trying to do:

Say I have a file:

DUT1.tcl

Within that file, I define a class:

itcl::class DUT1 { etc...

Within that class, I define a method:

public method clearCounters {port args}

Then, I add the method itself:

itcl::body DUT1::clearCounters {port args} { etc...

NOW; I make a change to the clearCounters method; I want to basically reload the method to get the change. If I try to resource DUT1.tcl it will fail because the class DUT1 already exists.

Is there a way to basically reload a method?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top