You are viewing a plain text version of this content. The canonical link for it is here.
Posted to websh-dev@tcl.apache.org by "David N. Welton" <da...@dedasys.com> on 2001/11/16 14:39:41 UTC

web::context delete

WRT bug: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=4727

        Add invalidate command to web::context (amounts to namespace forget)

It makes more sense to me to just add a 'delete' command to it, so
that 

web::context foobar

foobar::delete

destroys itself.

test context-1.20 {context destroy} {
    web::context ctxb
    ctxb::delete
    catch {
	ctxb::cset foo bar
    } err
    set err
} {invalid command name "ctxb::cset"}

-- 
David N. Welton
   Consulting: http://www.dedasys.com/
Free Software: http://people.debian.org/~davidw/
   Apache Tcl: http://tcl.apache.org/
     Personal: http://www.efn.org/~davidw/