more package unknown command
From: Alexander (alexander_at_edem.g12.br)
Date: 10/28/03
- Next message: Robert Heller: "Re: stopping a fileevent"
- Previous message: Alexander: "Re: understanding package unknown"
- Next in thread: Steve Cassidy: "Re: more package unknown command"
- Reply: Steve Cassidy: "Re: more package unknown command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 27 Oct 2003 17:07:02 -0800
I need continue my tutorial and I need some examples about "package
unknown" command.
That is it!
So... the script here not work.
The problem:
If version of package exist, so, TCL don't show me anything(is
correcty).
If version of package not exist, TCL show the default error and not
run my procedure.
If I put "package unknown" instruction before "package require", TCL
show me error and run my procedure even package exist!
Yes, I clear "package unknown" instruction.
news:<slrnbpq7ea.3j2.dgp@clover.cam.nist.gov>...
> Alexander wrote:
> > I can't do one example about "package unknown".
>
> It is very rare for there to be a need to use the [package unknown]
> command. What is it you are trying to accomplish? You may be
> trying to use the wrong command.
>
> > proc error_load { name_pkg ver_pkg } {
> > puts "Cannot load package $name_pkg or version $ver_pkg of
> > package."
> > }
> > package unknown error_load
> > package require inutil 1.4.0
>
> So that "works", though I doubt it does what you want.
> Can't really help any more with knowing what you want.
- Next message: Robert Heller: "Re: stopping a fileevent"
- Previous message: Alexander: "Re: understanding package unknown"
- Next in thread: Steve Cassidy: "Re: more package unknown command"
- Reply: Steve Cassidy: "Re: more package unknown command"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|