You can use the trick where using fewer parameters than the method has will
populate from the top, so as long as you add the new ones to the bottom you
don't have to update your old code unless you need the new
parameter/features. 

I've also been known to duplicate a method and give it a new name
(makethumbnail_v2) to provide a substantial set of new parameters/features
to a method. In this case I'll update to the v2 call when needed or if I run
across the older call while doing other maintenance. If I want to remove the
older call, I'll add an email action to myself to it with enough info for me
to track down what code may be still using it.

In rare cases, I've supported different versions of whole TCFS. Simply
abandoning an older one for an updated one. In this case, it's just a matter
of making sure the proper object is instantiated.

Robert

-----Original Message-----
From: William M Conlon [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 16, 2006 2:03 PM
To: [email protected]
Subject: Re: Witango-Talk: Strict compilation flag

I'm curious about how to manage changes to call methods.  If I add a  
parameter to a call method, I need to modify all the callers -- in  
TAFs and TCFs.

A coupld of things come to mind.  I guess the simplest is to just do  
a global search for the method name.

Of course if we had the 'strict compilation' option, I could use the  
syntax checker for this.

Any other ideas?

On Jun 15, 2006, at 2:14 PM, William M Conlon wrote:

> Hi Phil and list,
>
> This may already be in the v6 Studio, but I would sure like to see  
> a 'strict compilation' option for syntax checking that could verify  
> that meta tag attributes used in tags are actually defined.
>
> For example, this will compile:
>
> <@VAR SCOPE="method" NAME="comment_list_by_user_action"  
> ENCODIGN="none">, even though I mis-typed the attribute "ENCODING"
>
> With TCF methods the server will barf, so I can catch my typos  
> during test.  But it looks like the server just ignores undefined  
> attributes.
>
> Is there a server configuration variable that would do strict  
> checking on metatags?  I would hate to burden my development server  
> with such a check, which should properly be done in the Studio, but  
> I might at least catch some typos.
>
> thank.
>
> Bill
>
> William M. Conlon, P.E., Ph.D.
> To the Point
> 345 California Avenue Suite 2
> Palo Alto, CA 94306
>    vox:  650.327.2175 (direct)
>    fax:  650.329.8335
> mobile:  650.906.9929
> e-mail:  mailto:[EMAIL PROTECTED]
>    web:  http://www.tothept.com
>
> ______________________________________________________________________ 
> __
> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Bill

William M. Conlon, P.E., Ph.D.
To the Point
345 California Avenue Suite 2
Palo Alto, CA 94306
    vox:  650.327.2175 (direct)
    fax:  650.329.8335
mobile:  650.906.9929
e-mail:  mailto:[EMAIL PROTECTED]
    web:  http://www.tothept.com

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to