tcl-mod_dtcl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "yahalom emet" <yaha...@zvia.org.il>
Subject Re: terminating script
Date Thu, 17 Jan 2002 06:27:21 GMT
even the simple script you are doing returns :
here
----------------------------------------------------------------------------
----


invoked "break" outside of a loop
    while executing
"namespace eval request {
buffer_add "<body>
    <h1></h1>
"


puts here

break

puts there


 hputs "
  </body>

"

}
"
I do not have before or after script.just childInit script that loads
packages
 and connect to database.
maybe I should mention:
the platform is linux red-had 7.1.
tcl version is 8.3

Thanks

Yahalom Emet
Software Developer
Xor Technologies Ltd.

Tel: +972 (0)4-6619164
E-mail: yahalom@zvia.org.il
Web: http://www.xortechnologies.com


----- Original Message -----
From: "David N. Welton" <davidw@dedasys.com>
To: "yahalom emet" <yahalom@zvia.org.il>
Cc: "Mod_dtcl" <mod_dtcl@tcl.apache.org>
Sent: Wednesday, January 16, 2002 9:03 PM
Subject: Re: terminating script


> "yahalom emet" <yahalom@zvia.org.il> writes:
>
> > sorry for the late reply...
>
> No problem...
>
> > it was in a tcl script
>
> Tcl scripts are different because they aren't run inside a namespace.
> You have to manage things yourself... one smart thing you could do
> would be to put everything in a proc:
>
> proc mytclpage {  } {
>         ...
>         ...
> }
>
> mytclpage
>
> Exits are then performed via 'return'.
>
> > but when I do break insite a ttml file I am also getting:
>
> > invoked "break" outside of a loop
> >     while executing
> > "ReturnAnswer "OP_ERR_XML_FORMAT" "$msg""
> >     (in namespace eval "::request" script line 311)
> >     invoked from within
> > "namespace eval request {
>
> Strange... for me, this seems to work ok:
>
>   <body>
>     <h1></h1>
> <?
>
> puts here
>
> break
>
> puts there
>
> ?>
>   </body>
>
> Even something that simple doesn't work?  If that's the case, maybe
> it's interacting with something else you've got?  An errorscript?
> before or after scripts?
>
> --
> David N. Welton
>    Consulting: http://www.dedasys.com/
> Free Software: http://people.debian.org/~davidw/
>    Apache Tcl: http://tcl.apache.org/
>      Personal: http://www.efn.org/~davidw/


Mime
View raw message