Tcl: Syntax highlighting, package handling [message #636916] |
Wed, 03 November 2010 10:47 |
Oliver Bienert Messages: 1 Registered: November 2010 |
Junior Member |
|
|
Hello,
Eclipse SDK 3.6.1, Build id: M20100909-0800
DLTK 2.0.0.v20100505-1154-7L0-EC3wSZiWSqREkvtZ
Windows XP Prof
Tcl/Tk8.5
I just started using the Eclipse DLTK Env for writing Tcl-programs and stumbled
over a number of oddities or maybe bugs.
1. In my code I write:
set app "c:/tcl/lib/kit/snodbc.kit"
source $app
Eclipce then puts a warning saying "Could not locate sourced file $app"
Giving the path directly works:
source c:/tcl/lib/kit/snodbc.kit
The next line reads:
package require snodbc
Independly from how I deal with path to the kit file above, I always get a
warning 'Unknown package snodbc'. How does package resolving work in DLTK-Tcl? Seems to me, that especially binary packages are signalled that way.
2. The 'catch' command has the general form:
catch script ?resultVarName? ?optionsVarName?
However when I give both optional args, Eclipse puts a warning saying:
Optional argument(s)
3. In Tcl 8.5, there is a new expand operator '{*}', formerly known as
'{expand}', e.g.:
return -code error {*}$options $result
When I use this syntax, Eclipse puts an error, saying:
Extra characters after close-brace
The good message is, it doesn't prevent me from executing the code, so it is
just sort of misleading, because I know the code is right.
If someone may give a hint how to start in the DLTK framework, I may be able to
look for the errors by myself, however any help appreciated.
Regards Oliver
|
|
|
|
Powered by
FUDForum. Page generated in 0.03518 seconds