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:

  1. assemble code package can package require. package definition file require package provide call in it, , you'll want (at least first time) use pkg_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, …

  2. directly source files @ right time. useful you've got application source longer want put in single file. (splitting things can instinct.)


Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -