On Fri, 24 Mar 2000, J.R.Suckling wrote:
> Rick Macdonald wrote:
> > This is actually what I do in case I do decide to put vTcl in "TEST" mode.
> > Note that using the namespace syntax makes a global declaration
> > unnecessary.
> >
> > proc {main} {argc argv} {
> >
> > if {[info exists ::vTcl]} {
> > # This isn't meant to be runable within vTcl
> > return
> > }
>
> Perhaps it is time to upgrade.
> Since for me vtcl runs the main even
> if I only use edit mode.
Sorry, you're probably right. I'm not going to bother checking, but I
think vTcl runs main once when loading, but doesn't re-run it when you
click on TEST, which at one time I thought might be a bug in some cases.
Anyway, I often guard main as shown above, for other reasons as well, and
I rarely use the TEST mode anymore.
...RickM...
---------------------------------------------------------------------------
To unsubscribe from the Visual Tcl mailing list, please send a message
to [EMAIL PROTECTED] with "unsubscribe vtcl [EMAIL PROTECTED]" in the
message body (where [EMAIL PROTECTED] is your e-mail address).