guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Nala Ginrut
Subject: Why 'inexact' and 'exact' doesn't check 'number?' first?
Date: Wed, 12 Dec 2012 11:21:24 +0800

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? 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]