unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* min, max one complex arg
@ 2004-02-16  0:46 Kevin Ryde
  2004-02-16 16:20 ` Mikael Djurfeldt
  0 siblings, 1 reply; 2+ messages in thread
From: Kevin Ryde @ 2004-02-16  0:46 UTC (permalink / raw)


I noticed min and max on a single complex number argument return it
unchanged, (min 1+i) => 1+i, but for two complex args it dispatches to
the g_min/g_max generics.

Should it dispatch for the one arg case too, so as to confine the
builtin code to int/big/frac/real?


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: min, max one complex arg
  2004-02-16  0:46 min, max one complex arg Kevin Ryde
@ 2004-02-16 16:20 ` Mikael Djurfeldt
  0 siblings, 0 replies; 2+ messages in thread
From: Mikael Djurfeldt @ 2004-02-16 16:20 UTC (permalink / raw)
  Cc: djurfeldt

Kevin Ryde <user42@zip.com.au> writes:

> I noticed min and max on a single complex number argument return it
> unchanged, (min 1+i) => 1+i, but for two complex args it dispatches to
> the g_min/g_max generics.
>
> Should it dispatch for the one arg case too, so as to confine the
> builtin code to int/big/frac/real?

Yes.  It's strange to have (min "+i") but not (min +i) dispatch...

M


_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/guile-devel


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-16 16:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-16  0:46 min, max one complex arg Kevin Ryde
2004-02-16 16:20 ` Mikael Djurfeldt

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).