From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7524 invoked from network); 28 Sep 2005 08:46:49 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 28 Sep 2005 08:46:49 -0000 Received: (qmail 50081 invoked from network); 28 Sep 2005 08:46:43 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 28 Sep 2005 08:46:43 -0000 Received: (qmail 115 invoked by alias); 28 Sep 2005 08:46:36 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9454 Received: (qmail 103 invoked from network); 28 Sep 2005 08:46:35 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 28 Sep 2005 08:46:35 -0000 Received: (qmail 48912 invoked from network); 28 Sep 2005 08:46:35 -0000 Received: from ns9.hostinglmi.net (213.194.149.146) by a.mx.sunsite.dk with SMTP; 28 Sep 2005 08:46:34 -0000 Received: from 212.red-80-35-44.staticip.rima-tde.net ([80.35.44.212] helo=localhost) by ns9.hostinglmi.net with esmtpa (Exim 4.52) id 1EKXaG-0002wM-O6; Wed, 28 Sep 2005 10:46:36 +0200 Date: Wed, 28 Sep 2005 10:46:55 +0200 From: DervishD To: John Reese Cc: Zsh Users Subject: Re: Arithmetic expression and TRY_BLOCK_ERROR Message-ID: <20050928084655.GC1384@DervishD> Mail-Followup-To: John Reese , Zsh Users References: <20050927234153.GB988@DervishD> <4880307205092717115fbb352a@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4880307205092717115fbb352a@mail.gmail.com> User-Agent: Mutt/1.4.2.1i Organization: DervishD X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - ns9.hostinglmi.net X-AntiAbuse: Original Domain - sunsite.dk X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dervishd.net X-Source: X-Source-Args: X-Source-Dir: X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Hi John :) * John Reese dixit: > 2005/9/27, DervishD : > > Hi all :) > > I'll try to make it short ;) Why this: > > ... > > (( TRY_BLOCK_ERROR = 0 )) > > ... > > and not just this: > > ... > > TRY_BLOCK_ERROR=0 > > ... > > ????? > > > The parentheses make it an integer variable. I know it, what I don't understand is why is it needed :? I mean, that variable is already an integer variable. > Also, that particular > assignment sets $? to 1. Maybe that's desired. I don't know. Not in that context (is the code of the "throw" and "catch" functions). > Probably it's just that it's a fairly compact syntax for setting an > integer variable. 'let variable=0' is shorter ;) I really don't know the reason, but I can find this kind of assignment everywhere :-/ Raúl Núñez de Arenas Coronado -- Linux Registered User 88736 | http://www.dervishd.net http://www.pleyades.net & http://www.gotesdelluna.net It's my PC and I'll cry if I want to...