Index: openacs-4/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl,v diff -u -r1.31 -r1.32 --- openacs-4/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl 31 Mar 2006 17:59:14 -0000 1.31 +++ openacs-4/packages/acs-bootstrap-installer/tcl/00-proc-procs.tcl 8 Apr 2006 22:57:28 -0000 1.32 @@ -531,6 +531,7 @@ preferred.
Here's an example with named parameters, and namespaces (notice the preferred way of declaring namespaces and namespaced procedures). Ignore the \ in "\@param", @@ -611,7 +611,32 @@ }
++ (note, most of the info on callbacks here due to leeldn)
+ You can define callbacks, both generally (which you would do first) and specific + to a particular implementation. The way you do so is: +
++
ad_proc -callback foo::bar::zip { arg1 arg2 } { docs } -
+ This defines the callback generally. (Note! Don't define a body here!) +
ad_proc -callback foo::bar::zip -impl myimpl { } { } { #code }
+ callback foo::bar::zip $arg1 $arg2
+ callback -impl myimpl foo::bar::zip $arg1 $arg2
+ callback
for more info.
+