chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] <inexact> and <exact>


From: Daniel B. Faken
Subject: [Chicken-users] <inexact> and <exact>
Date: Tue, 10 Aug 2004 17:40:24 -0400 (EDT)

Hello,

  I am working with a C++ library which has methods that take a 'double'.
  Using declare(full_specialization, yes) I can get TinyCLOS to recognize 
method calls when the parameter is of the form 1.0001, but not if it is 
just '1' - I get an error looking for an <exact> method.
  This seems supported by R5RS saying that exactly one of exact? and
inexact? is true, but how can I get my methods to recognized exact numbers 
as well?  (I don't really want to define an <exact> case for each one..)

  I'm using today's CVS version (thanks for implementing ref's!), and the 
docs say that <exact> and <inexact> are disjoint subclasses of <number>.

thanks,
Daniel Faken






reply via email to

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