guile-devel
[Top][All Lists]
Advanced

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

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


From: Andy Wingo
Subject: Re: Why 'inexact' and 'exact' doesn't check 'number?' first?
Date: Mon, 21 Jan 2013 21:52:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Wed 12 Dec 2012 04:21, Nala Ginrut <address@hidden> writes:

> 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=================

scheme@(guile-user)> (positive? "foo")
ERROR: In procedure positive?:
ERROR: In procedure positive?: Wrong type argument in position 1: "foo"

Same reason; exact? operates on numbers.

Cheers,

Andy
-- 
http://wingolog.org/



reply via email to

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