Forum OpenACS Development: Re: RFC: Callbacks

Collapse
9: Re: RFC: Callbacks (response to 1)
Posted by Jeff Davis on
Also the reason I thought we should have the -implementation flag is because I thought the way we would document and define the contract for a callback would be simply:
ad_proc -callback module::op { 
 {-option {} }
 arg1:required 
} {
 docs 
} -
That - at the end is ad_procian for {just docs no body}.

I was also thinking that we could even drop the arg definition for things that are

ad_proc -callback module::op -implementation X
and use the generated arg parser from the callback definition rather than having to repeat it again.