Re: How to copy a proc
- From: newtophp2000@xxxxxxxxx
- Date: 24 Sep 2006 09:58:54 -0700
Bryan Oakley wrote:
When you say "copy" or "duplicate", what exactly are you trying to do?
Do you just need identical functionality with a different name? Do you
plan on modifying the copy?
In other words, do you truly need a copy or can other solutions work?
For example, you can use interp aliases to use more than one name, or
command overloading (essentially, renaming and then writing your own
wrapper to call the original) to add new functionality.
What I was looking for was essentially command overloading. I did not
want to define a wrapper function primarily because this particular one
gets called a lot within a double nested loop of matrix calculations.
It works just fine now, and I was worried about a negative impact on
efficiency, which may or may not be valid at this early stage.
Interp aliases seem to do exactly what I wanted.
Thanks!
--
Bryan Oakley
http://www.tclscripting.com
.
- References:
- How to copy a proc
- From: newtophp2000
- Re: How to copy a proc
- From: Bryan Oakley
- How to copy a proc
- Prev by Date: Re: How to copy a proc
- Next by Date: Re: invoked "break" outside of a loop
- Previous by thread: Re: How to copy a proc
- Index(es):