On Thu, 23 Mar 2000, J.R.Suckling wrote:
> [EMAIL PROTECTED] wrote:
> >
> > Hello,
> > Put the source statement in your main function.
> > That way it will be part of your application and not VTCL.
>
> You have just reminded me of my work around.
> The main is normally run when starting vtcl
> I put in there a test if info exists on some variable
> set by vtcl and only source external stuff and run
> other subs that would otherwise break stuff when vtcl
> is not running.
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
}
...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).