chicken-janitors
[Top][All Lists]
Advanced

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

[Chicken-janitors] #587: CR: expt should signal error on domain error


From: Chicken Trac
Subject: [Chicken-janitors] #587: CR: expt should signal error on domain error
Date: Tue, 31 May 2011 12:27:47 -0000

#587: CR: expt should signal error on domain error
----------------------------+-----------------------------------------------
 Reporter:  felix           |       Owner:       
     Type:  task            |      Status:  new  
 Priority:  minor           |   Milestone:       
Component:  core libraries  |     Version:  4.7.x
 Keywords:  expt            |  
----------------------------+-----------------------------------------------
 `expt` returns +NaN when called with a negative first argument and a non-
 integer second argument. With a full numeric tower this would be a complex
 number, but those are of course not supported in the core system.

 I suggest signalling an error in this case. This might break existing code
 that relies on +NaN being returned.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/587>
Chicken Scheme <http://www.call-with-current-continuation.org/>
Chicken Scheme is a compiler for the Scheme programming language.

reply via email to

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