At 02:21 PM 11/10/00 +0100, you wrote:
>Eric Taylor wrote:
>> Just wanted to point out that the change in 1.2.2
>> that added:
>>
>> #!/bin/sh
>> # the next line restarts using wish\
>> exec wish8.0 "$0" "$@"
>> 
>> ##############################################################
>> ###############
>>
>> broke my mktclapp apps (program to combine C and Tcl/tk
>> into a single application executable)  and
>> I had to remove it from the vtcl source code I use.
>>
>> When doing the embedding pass, they strip all comments first.
>
>Hm, ...
>
>What about adjusting the stripping of the comments ? 
>It should be consistent with Tcl's idea of a comment,
>shouldn't it ?
>
>>From the 'wish' help file:
>| When wish starts up, it treats all three lines as comments,
>| since the backslash at the end of the second line causes the
>| third line to be treated as part of the comment on the second
>| line.
>
>If the third line is not properly recognized as continued comment,
>chances are, you run into trouble with other scripts using comment
>continuation lines.

This is probably true, however, I don't find in practice that
any script uses this comment feature, since it is a somewhat
dangerous practice. An accidental \ at the end of a comment
or, an extra space after the \ at the end of the line could 
cause an error that would be difficult to spot.

The wish8.0 seems to be a bit specific also. I use 8.3 now.

Since some users will not be able to modify the mktclapp
program themselves (a c program), I think having a preferences option
would be the best solution. I just deleted the 3 puts statements
in file.tcl, but others might not want to do this.

eric

_______________________________________________
vtcl-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/mailman/listinfo/vtcl-user

Reply via email to