From: "Neil Jerram" <neiljerram@googlemail.com>
To: "Bill Schottstaedt" <bil@ccrma.stanford.edu>
Cc: bug-guile@gnu.org
Subject: Re: (< complex) and friends
Date: Tue, 12 Aug 2008 10:18:26 +0100 [thread overview]
Message-ID: <49dd78620808120218k62cb690aq6251f427fc078a9b@mail.gmail.com> (raw)
In-Reply-To: <20080811210230.M31889@ccrma.Stanford.EDU>
2008/8/11 Bill Schottstaedt <bil@ccrma.stanford.edu>:
> guile> (< 1.0+1.0i)
> #t
> guile> (< 2.0 1.0+1.0i)
>
> Backtrace:
> In standard input:
> 2: 0* [< 2.0 {1.0+1.0i}]
>
> standard input:2:1: In procedure < in expression (< 2.0 1.0+1.0i):
> standard input:2:1: Wrong type: 1.0+1.0i
> ABORT: (wrong-type-arg)
My guess (without actually looking at the code) is that
- using < etc with complex numbers will always give a wrong type arg error
- the single arg case is being optimized before reaching the check for
a complex number.
What behaviour would you prefer? (Perhaps to say that < etc. only
compare the real parts of the provided numbers? Is there any
precedent for that in other Schemes or standards?)
Neil
next prev parent reply other threads:[~2008-08-12 9:18 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-11 21:03 (< complex) and friends Bill Schottstaedt
2008-08-12 9:18 ` Neil Jerram [this message]
2008-09-17 21:37 ` Neil Jerram
2008-09-17 21:45 ` Bill Schottstaedt
2008-09-18 13:59 ` Jon Wilson
2008-09-18 19:02 ` Andy Wingo
2008-09-18 17:59 ` Bill Schottstaedt
2008-09-19 3:07 ` Jon Wilson
2008-09-19 23:11 ` Neil Jerram
2008-09-19 13:23 ` Bill Schottstaedt
2008-09-19 23:17 ` Neil Jerram
2008-09-19 23:59 ` Jon Wilson
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
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49dd78620808120218k62cb690aq6251f427fc078a9b@mail.gmail.com \
--to=neiljerram@googlemail.com \
--cc=bil@ccrma.stanford.edu \
--cc=bug-guile@gnu.org \
/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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).