tcl - missing entries in tclIndex for snit types -
i'm using tcl 8.6 included snit (active state tcl). snit types held in different files. when generating index auto_mkindex
relevant stuff snit types missing in tclindex
.
that means: when try create object of snit type (for example 'mytype create objectsname ...
), interpreter writes message invalid command name ....
if complete tclindex manually
set auto_index(rpcskeleton) [list source [file join $dir rpc2.tcl]]
everything runs fine!
do wrong? bug in snit package (or in add on module auto_mkindex
)?
i wouldn't advise using auto_mkindex
@ all; whole thing setting automatically-loaded code rather ill-advised in first place in real application. it's far better either:
assemble code package can
package require
. package definition file requirepackage provide
call in it, , you'll want (at least first time) usepkg_mkindex
create package index file. package index files simple enough you'll able maintain them hand; don't list every command in package in them, , relocatable, maintenance adding file if necessary , updating version number. (do not use lazy package loading!)alternatively, …
directly
source
files @ right time. useful you've got application source longer want put in single file. (splitting things can instinct.)
Comments
Post a Comment