From: APN on 15 Jul 2010 00:19 On Jul 15, 9:14 am, APN <palm...(a)yahoo.com> wrote: > Here's a sample I use > ------ > package require starkit > starkit::startup > if {[package vcompare [package require Tcl] 8.4]} { > ::tcl::tm::path add [file join $starkit::topdir lib]} > > starkit::autoextend [file join $starkit::topdir lib tcllib] > starkit::autoextend [file join $starkit::topdir lib tklib] > package require appwits > > ----- > > /Ashok By the way, if you are intending to package your application in 8.5 .tm format in the future, do not use '-' in the package name. Make it appOEVLetters. From what I recall, the '-' confuses the tm loader which parses it as a separator. Not sure if that problem still exists. /Ashok
From: Kroc on 15 Jul 2010 03:20 On 14 juil, 19:35, Robert Heller <hel...(a)deepsoft.com> wrote: > > What is a '.tm' file? That's the wheel ... re-invented. -- David Zolli
From: Schelte Bron on 15 Jul 2010 07:27 APN wrote: > if {[package vcompare [package require Tcl] 8.4]} { > ::tcl::tm::path add [file join $starkit::topdir lib] > } I don't think that's the check you intended to perform. This will execute the ::tcl::tm::path add command for all Tcl versions, except 8.4. So also for Tcl 8.3. A better method would probably be to use vsatisfies instead of vcompare: if {[package vsatisfies [package require Tcl] 8.5]} { ::tcl::tm::path add [file join $starkit::topdir lib] } Schelte.
From: APN on 15 Jul 2010 08:45 On Jul 15, 4:27 pm, Schelte Bron <nos...(a)wanadoo.nl> wrote: > APN wrote: > > if {[package vcompare [package require Tcl] 8.4]} { > > ::tcl::tm::path add [file join $starkit::topdir lib] > > } > > I don't think that's the check you intended to perform. This will > execute the ::tcl::tm::path add command for all Tcl versions, except > 8.4. So also for Tcl 8.3. A better method would probably be to use > vsatisfies instead of vcompare: > > if {[package vsatisfies [package require Tcl] 8.5]} { > ::tcl::tm::path add [file join $starkit::topdir lib] > > } > > Schelte. True, but in my case, the app will not even build if version is < 8.4. The makefile verifies the tclkit versions. You're right in general though. /Ashok
From: Kroc on 15 Jul 2010 09:00 BTW I don't think tclkit 8.3 exists. -- David Zolli
First
|
Prev
|
Pages: 1 2 Prev: Apache Rivet 2.0.1 released Next: Please help : suppress error message from exec |