Re: starpack vfs can't be accessed from thread

Jeff Hobbs <[email protected]>
Newsgroups gmane.comp.lang.tcl.starkit
Message-ID <[email protected]>
[email protected] wrote:
> Hmm...but the child thread can't mount the vfs since (I believe) the
> vfs package is located in the vfs that it can't access.

As with all packages, once loaded in any interp, they are available 
statically to all others.

hobbit [~] 4 % /Library/Tcl/basekits/base-tcl-thread-macosx-universal
% package require Thread
2.6.5
% set t [thread::create {thread::wait}]
tid0x1804e00
% package require vfs
1.3
% thread::send $t {load {} vfs}
% thread::send $t {package names}
Thread tclkitpath zlib vfs Mk4tcl Tcl

Jeff
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.