Forum OpenACS Development: Re: ad_proc - Behaviour using named parameters

Collapse
Posted by Brian Fenton on
Hi Klaus

This is a known feature of ad_proc (one I personally don't like) called Boolean named parameters. See the documentation here with the example using flush_p https://openacs.org/api-doc/proc-view?proc=ad_proc

Brian

Collapse
Posted by Klaus Hofeditz on
Hi Brian,
thanks for the clarification.

Looking at the documentation I'd say that this feature would require the declaration of the var as 'boolean'. Never mind, knowing this I can work around it.

Cheers
Klaus

Collapse
Posted by Brian Fenton on
Hi Klaus

actually I have to take back what I said. I don't understand what's causing your proc's behavior. I do have this idea in my head that certain parts of OpenACS treat "foo_p" and "foo" as the same, but I can't remember where I read that (apart from the boolean named variables, which is not what is happening in your case).

Sorry for the confusion.
Brian