Thanks for the code snippet! I didn't think symbolic links could be a
problem.
If you launch a tcl script with a link, [info script] returns the path to
the link ?
I tried to do better, rename the info command to _info then redefining it,
but this caused a protection fault under Windows. So it seems the info
cannot be redefined...
- Why did the code of "source"ed routines in my project suddenly show
up inside the vtcl program? It's a bug or a feature?
Both a bug and a feature :-) See modules below.
- Is it possible to redistribute functions into different source
files? If not, can it be made possible?
I am planning to add "modules" in a next release of vTcl. Each module
can have a collection of procedures, binding tags, toplevels, and so on.
A module will be saved in its own separate file. Modules could be reused
across projects. Some modules could be read-only so they just "import"
external code. I am also thinking of generating packages out of modules.
- Is it possible to use another editor to edit the procedures? If
not, can this too made possible?
No, because vtcl stores procedures in memory. vTcl would have to
export the procedure to a temp file, launch the editor, and when the
editor saves the file, vtcl would have to load it back. Not very
convenient...
- Is there anybody working on documentation? What status does it
have? Is there some referenc document? (beside the outdated docs)?
That's problem number 1. There is no documentation except the "tips of the
day". Is anyone
interested to help ? We also need help to maintain the web site, check all
the links, add news,
etc. Any help welcome!
CG
|--------+------------------------------------->
| | [EMAIL PROTECTED] |
| | Sent by: |
| | [EMAIL PROTECTED]|
| | eforge.net |
| | |
| | |
| | 10/25/2001 01:52 AM |
| | |
|--------+------------------------------------->
>-----------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc:
|
| Fax to:
|
| Subject: [vtcl-user] Movable Projects
|
|
|
>-----------------------------------------------------------------------------------------------------------|
Hello!
When creating a project with multiple files, the problem rises, that
if you want to copy it (install it) do another place you have to
install the whole set of files in the same directory where you created
it, so vtcl-startup routines can find the widget files. Same goes for
files you include by yourself.
I just elaborated a solution to the problem, which even makes it
posible to install a vtcl made program in one directory and start it
from a symbolic link to the executable.
It's easy and small, and I hope it will make it into the distribution.
Two steps needed:
1- The attached file: info_script.tcl contains two (three) helper
proc's, chase and info_script.
These procs have to be included into vtcl startup code (of the
application).
2- Each occurence of "info script" (used to load the widget files) has
to be replaced by "info_script"
Notes:
- This is only valid if you do not user this freewrap thing (don't
know anything about it), because freewrap loads with an absolut
path. I suppose that freewrap could also benefit from
"info_script", but you have to figure out yourself.
- It could be wise to call info_script once at startup and put the
result (the *real* path to the executing script) in a Vtcl::
Variable, which can then be reused as many times you like by vtcl
internal routines *and* by user scripts. Simpler syntax and faster
execution.
- Don't know, if "chase" breaks on Guindo's (MS Windows). It uses
"file lstat" to check if a path is a symbolic link. Does this work
on that platform? and on Mac?? I suppose it should, if not this
would be a flaw in Tcl, as symlinks don't exist on Windows, so Tcl
should never report any, but of course report the file type.
Questions to vtcl gurus:
- Why did the code of "source"ed routines in my project suddenly show
up inside the vtcl program? It's a bug or a feature?
- Is it possible to redistribute functions into different source
files? If not, can it be made possible?
- Is it possible to use another editor to edit the procedures? If
not, can this too made possible?
- Is there anybody working on documentation? What status does it
have? Is there some referenc document? (beside the outdated docs)?
Thank you for the fine product,
Best Regards,
Jorge-Le�n
_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/vtcl-user