Forum OpenACS Development: Re: ad_form -edit_request block not intuitive

Collapse
Posted by Jun Yamog on
Hi Rob,

Thanks I believe that is the cause of it, I haven't tried yet though.  But according to the last post a FULL code sweep should be done for this?  I am going to change my code and update my Things 2 Remember.

Does this also happen on ad_proc that only make use of switches much like Yon has suggested and I have placed on my Things 2 Remember?

Collapse
Posted by Robert Locke on
Yes, if your "ad_proc"-defined proc encounters a "--" as it loops through its arguments, it assumes that every subsequent argument is no longer a "switch".  The native Tcl "proc" only supports arguments, the concept of a "switch" is an OACS add-on via "ad_proc".

I think the golden rule should be: if any of the arguments to your ad_proc could potentially contain a "-", then separate the switches from the arguments with a "--".