chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #674: ##sys#string->number gets called without pr


From: Chicken Trac
Subject: Re: [Chicken-janitors] #674: ##sys#string->number gets called without prefixes in the reader
Date: Fri, 23 Sep 2011 07:11:51 -0000

#674: ##sys#string->number gets called without prefixes in the reader
-----------------------------+----------------------------------------------
  Reporter:  sjamaan         |       Owner:  felix          
      Type:  defect          |      Status:  new            
  Priority:  major           |   Milestone:  4.8.0          
 Component:  core libraries  |     Version:  4.7.x          
Resolution:                  |    Keywords:  reader, numbers
-----------------------------+----------------------------------------------

Comment(by felix):

 Attached is a patch which I believe might help here - it pushes the
 exactness conversion into `##sys#string->number`, via an additional
 optional argument which is either `#f` (undetermined), the symbol `'i`
 (inexact) or `'e` (inexact). On older chickens, the third argument will
 always be false, so this should be backwards-compatible.

 Is this useful?

 We should also review the remaining hooks used in numbers
 (`##sys#inexact?`, `##sys#inexact->exact`, `##sys#exact->inexact`, etc.).
 Some of them might be redundant and allow us to optimize/rewrite core
 procedures in better ways.

-- 
Ticket URL: <http://bugs.call-cc.org/ticket/674#comment:1>
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]