From: Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
To: zsh-workers@sunsite.auc.dk (Zsh hackers list)
Subject: Re: Parameters are being typed as float by default?
Date: Sun, 08 Jul 2001 23:22:32 +0100 [thread overview]
Message-ID: <20010708222237.C62B914284@pwstephenson.fsnet.co.uk> (raw)
In-Reply-To: ""Bart Schaefer""'s message of "Sat, 07 Jul 2001 19:27:30 -0000." <1010707192731.ZM16575@candle.brasslantern.com>
"Bart Schaefer" wrote:
> On Jul 7, 4:43pm, Bart Schaefer wrote:
> } }
> } } let lines=$LINES-2
> } }
> } } Why did $lines become float-typed?
> }
> } It became float-typed because at math.c:644, MN_UNSET != MN_INTEGER
> }
> } However, I don't know the right way to fix this.
>
> After some further study, the following seems to be sufficient, because
> `a' is never referenced again on `EQ'. Peter?
That looks fine. In fact, (a.type != MN_UNSET) should be enough, because
it will always be marked as unset if (what == EQ), but I wouldn't lose
sleep over that.
I looked to see if this is going to have further ramifications since
there's no type coercion until the actual point of setting, but I couldn't
find a case where it makes a difference (this almost is the point of
setting, since that's all that equals does apart from returning the
value/type just set).
--
Peter Stephenson <pws@pwstephenson.fsnet.co.uk>
Work: pws@csr.com
Web: http://www.pwstephenson.fsnet.co.uk
prev parent reply other threads:[~2001-07-08 21:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-07-07 16:06 Bart Schaefer
2001-07-07 16:43 ` Bart Schaefer
2001-07-07 19:27 ` Bart Schaefer
2001-07-08 22:22 ` Peter Stephenson [this message]
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=20010708222237.C62B914284@pwstephenson.fsnet.co.uk \
--to=pws@pwstephenson.fsnet.co.uk \
--cc=zsh-workers@sunsite.auc.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).