zsh-users
 help / color / mirror / code / Atom feed
From: DervishD <zsh@dervishd.net>
To: John Reese <john.reese@gmail.com>
Cc: Zsh Users <zsh-users@sunsite.dk>
Subject: Re: Arithmetic expression and TRY_BLOCK_ERROR
Date: Wed, 28 Sep 2005 10:46:55 +0200	[thread overview]
Message-ID: <20050928084655.GC1384@DervishD> (raw)
In-Reply-To: <4880307205092717115fbb352a@mail.gmail.com>

    Hi John :)

 * John Reese <john.reese@gmail.com> dixit:
> 2005/9/27, DervishD <zsh@dervishd.net>:
> >     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...


  parent reply	other threads:[~2005-09-28  8:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-27 23:41 DervishD
2005-09-28  0:11 ` John Reese
2005-09-28  0:48   ` Will Maier
2005-09-28  1:04     ` John Reese
2005-09-28  8:46   ` DervishD [this message]
2005-09-28 14:55     ` Bart Schaefer
2005-09-29 10:30       ` DervishD

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050928084655.GC1384@DervishD \
    --to=zsh@dervishd.net \
    --cc=john.reese@gmail.com \
    --cc=zsh-users@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).