Return-Path: Mailing-List: contact mod_dtcl-help@tcl.apache.org; run by ezmlm Delivered-To: mailing list mod_dtcl@tcl.apache.org Received: (qmail 16764 invoked from network); 17 Jan 2002 06:27:23 -0000 Received: from www.zvia.org.il (HELO tmgw.zvia.org.il) (192.116.217.98) by daedalus.apache.org with SMTP; 17 Jan 2002 06:27:23 -0000 Received: from yahalom1 (fw.zvia.org.il [192.116.217.101]) by tmgw.zvia.org.il (8.9.3/8.9.3) with SMTP id JAA14899; Thu, 17 Jan 2002 09:30:32 +0200 Message-ID: <00af01c19f20$176242d0$080aa8c0@yahalom1> Reply-To: "yahalom emet" From: "yahalom emet" To: "David N. Welton" Cc: "Mod_dtcl" References: <012401c19836$38080470$080aa8c0@yahalom1><87g05h3wjh.fsf@dedasys.com> <014501c1983a$94477280$080aa8c0@yahalom1><87y9j9yr5m.fsf@dedasys.com> <018301c1983f$7ce52c40$080aa8c0@yahalom1><878zb9uinm.fsf@dedasys.com> <019401c19841$fc18bb60$080aa8c0@yahalom1><877kqtron5.fsf@dedasys.com> <005601c19e88$fb55ce50$080aa8c0@yahalom1> <87u1tmnmnu.fsf@dedasys.com> Subject: Re: terminating script Date: Thu, 17 Jan 2002 08:27:21 +0200 Organization: Xor MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 Disposition-Notification-To: "yahalom emet" X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N even the simple script you are doing returns : here ---------------------------------------------------------------------------- ---- invoked "break" outside of a loop while executing "namespace eval request { buffer_add "

" puts here break puts there hputs " " } " 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" To: "yahalom emet" Cc: "Mod_dtcl" Sent: Wednesday, January 16, 2002 9:03 PM Subject: Re: terminating script > "yahalom emet" 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: > > >

> > puts here > > break > > puts there > > ?> > > > 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/