Re: Re: error: no version of package ... provided

Pat Thoyts <[email protected]> Sat, 12 Dec 2009 20:51:02 +0000
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
2009/12/12 Harald Oehlmann <[email protected]>:
> Pat Thoyts schrieb:
>> and the use of a main.tcl at the toplevel that looks more like:
>>   package require starkit
>>   if {[starkit::startup] ne "sourced"} {
>>       source [file join $starkit::topdir bin application.tcl]
>>   }
>>
>> This will load your application whether you run a starkit, starpack or
>> run the application in-place with tclkit app.vfs/main.tcl
>> It also permits you to source the kit into an editor which some people
>> find useful.
>
> Could you explain more when starkit::startup will return "sourced" ?

You can create starkits that just have things under lib/* (like the
tls.kit on sourceforge). These kits can be sourced to make the
packages inside available:
 source tls.kit
 package require tls  ;# load tls package from the kit

anytime you source a starkit then startup will return sourced.
It can also return from {starpack starkit unwrapped tclhttpd plugin service}

Look at [info body starkit::_startup] for the details.

-- 
You received this message because you are subscribed to the "starkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/starkit?hl=en