unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* Why 'inexact' and 'exact' doesn't check 'number?' first?
@ 2012-12-12  3:21 Nala Ginrut
  2012-12-12  4:39 ` Daniel Hartwig
  2013-01-21 20:52 ` Andy Wingo
  0 siblings, 2 replies; 7+ messages in thread
From: Nala Ginrut @ 2012-12-12  3:21 UTC (permalink / raw)
  To: guile-devel

It's weird to see that:
(exact? 'a) 
================err msg===============
ERROR: In procedure exact?:
ERROR: In procedure exact?: Wrong type argument in position 1: a
==================end=================

And I have to do this:
(define (fraction? obj)
  (and (number? obj) (inexact? obj)))


Why not 'exact?' and 'inexact?' doesn't check 'number?' first? 




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

end of thread, other threads:[~2013-01-21 20:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-12  3:21 Why 'inexact' and 'exact' doesn't check 'number?' first? Nala Ginrut
2012-12-12  4:39 ` Daniel Hartwig
2012-12-12  5:55   ` Nala Ginrut
2012-12-12  6:07     ` Daniel Hartwig
2012-12-12  6:32       ` Mark H Weaver
2012-12-12  6:39         ` Daniel Hartwig
2013-01-21 20:52 ` Andy Wingo

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