Forum OpenACS Q&A: multiple definitions of ...

Collapse
Posted by Jonathan Ellis on
to remind myself to go through and rm crufty old code that I don't have time to do "right this minute" I like to "deprecate" them as follows:
rename ad_context_bar_ws ad_context_bar_ws_old
proc_doc ad_context_bar_ws args "Deprected" {
    ns_log warning "ad_context_bar_ws was called by 
[ad_calling_script]"
    eval ad_context_bar_ws_old $args
}
This works as expected; however, when sourcing the files nsd still gives the error
Notice: Multiple definition of ad_context_bar in /web/prod/tcl/ad-
navigation.tcl and /web/prod/tcl/z-jbe-overridden-ad-procs.tcl
is there an "nsd-approved" way that I should be using instead? If not no big deal I guess but it sucks having "bogus" messages obscuring warnings I want to be reminded of. :)
Collapse
Posted by Stephen . on
ad_proc -deprecated [-warn] ...

/api-doc/proc-view?proc=ad_proc
Collapse
Posted by Jonathan Ellis on
I'm using 3.2.
Collapse
Posted by David Walker on
nsd doesn't care.  Your "Multiple definition" error is generated because of the
proc_doc procedure.  Just ignore it or change the original proc from proc_doc
to proc.
Collapse
Posted by Jonathan Ellis on
thanks, David...  exactly right, I hadn't thought to look there.