On Tue, 11 Feb 1997, Lex Luthor wrote:
> 1) When we open a file, and the file contains a line :
> source XX.tcl
> every thing's OK, but when we order to save the file, the contents
> of XX.tcl is included into the file, and not remains into XX.tcl.
> Example : I created a file proc.tcl, taht contins all procedures i have,
> and when I saved a project that called this file, all procedures was
> included in my project.tcl.
This is currently the way that vtcl handles importing.
> 2) I created a procedure like this :
> proc proc1 {mess}
> {
> }
>
> VTCL didn't passed any error messages saying it was worng, and
> didn't open it correctly, until I change to this :
> proc proc1 {mess} {
> }
> Why it doesn't pass any error messages, sying it was worng ???
> I've experienced others problems related to this, that no error messages
> was show... :(
how did you creat this procedure? was it in the "sourced" file? if so,
vtcl will not catch the errors (at this time).
> 3) How do I pass a parameter to a procedure by reference ????
read the man page on the "upvar" command.
-stewart-