There are hidden secrets within ad_proc that afaik have never been documented anywhere other than the source code (viewable via /api-doc/). Like,
ad_proc foobar {-foo:boolean} { ... }
can be invoked as:
foobar -foo=$some_boolean_value
I have custom ACS 4.2 code that's littered in places with:
if {$flush_p} {
some_proc -flush $key
} else {
some_proc $key
}
Much cleaner to know you can say: some_proc -flush=$flush_p $key