|
From: Steve L. <st...@Di...> - 2005-01-24 22:15:29
|
On 25/01/2005, at 2:07 AM, Donald G Porter wrote:
>
>>> if {![package vsatisfies [package provide Tcl] 8.5]} {return}
>>> if {[catch {package present Tk 8.5}] != 0} {return}
>>> if {[tk windowingsystem] ne "x11"} {return}
>>> package ifneeded Tile 0.5 [list load [file join $dir libtile.so]]
>>
>> Is that going to address the issue - how to selectively load the
>> shared
>> library depending on the windowing system when Tk hasn't necessarily
>> been "package required" when the Tile pkgIndex.tcl runs?
....
> This scheme allows either one or both variants of the package to
> be installed independently. If both are installed, [tclPkgUnknown]
> will run both index scripts and the proper [package ifneeded] command
> will be evaluated.
>
> If package Tk is not present at the time of [package require Tile 0.5],
> then the Tile package will not be found. The index script(s) above
> require the application to do:
>
> package require Tk 8.5
> package require Tile 0.5
>
> in order. Since I cannot imagine any application that will use
> Tile commands that would not also use Tk commands, I don't think
> this limitation imposes any burden.
OK, that answers my question. You are assuming that Tk is present.
No problems - I agree that it isn't an undue burden. But it is a change
from the current situation.
What do others think?
Steve
|