Hello,

I have been wondering about a better way to determine if
Itcl is available (in the right version) or not.

Currently this is done by looking for the library and
header files. But this does not check if the version
of Itcl does indeed match the version of Tcl. (Itcl
uses - at least in its classical form - a number of
Tcl internals and is therefore locked to a particular
version of Tcl.)

The following script does check that (I tested it with
different versions of Tcl and Itcl):

package require Itcl
puts OK
exit

This will either produce the output "OK" on standard output
or an error message stating that Itcl was not found OR
that the version of Tcl does not match:

> tclsh85
% package require -exact Itcl 3.3
version conflict for package "Tcl": have 8.5.2, need exactly 8.4

That would in my opinion be a useful addition to the current
detection method.

Regards,

Arjen


------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to