chicken-janitors
[Top][All Lists]
Advanced

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

Re: [Chicken-janitors] #1462: srfi-4 unit should support s64 and u64 vec


From: Chicken Trac
Subject: Re: [Chicken-janitors] #1462: srfi-4 unit should support s64 and u64 vectors in Chicken 5
Date: Tue, 15 May 2018 07:31:41 -0000

#1462: srfi-4 unit should support s64 and u64 vectors in Chicken 5
---------------------------------------+--------------------
            Reporter:  johnwcowan      |      Owner:
                Type:  defect          |     Status:  closed
            Priority:  major           |  Milestone:  5.0
           Component:  core libraries  |    Version:  4.13.0
          Resolution:  worksforme      |   Keywords:  srfi-4
Estimated difficulty:  easy            |
---------------------------------------+--------------------
Changes (by sjamaan):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 I don't know what you've checked, but it seems to work just fine:

 {{{
 (c) 2008-2017, The CHICKEN Team
 (c) 2000-2007, Felix L. Winkelmann
 Version 5.0.0 (rev dfc562f1)
 linux-unix-gnu-x86-64 [ 64bit dload ptables ]

 #;1> (import srfi-4)
 ; loading /home/peter/chickens/chicken-5/lib/chicken/9/srfi-4.import.so
 ...
 ; loading /home/peter/chickens/chicken-5/lib/chicken/9/chicken.import.so
 ...
 ; loading
 /home/peter/chickens/chicken-5/lib/chicken/9/chicken.bitwise.import.so ...
 ; loading
 /home/peter/chickens/chicken-5/lib/chicken/9/chicken.fixnum.import.so ...
 ; loading
 /home/peter/chickens/chicken-5/lib/chicken/9/chicken.foreign.import.so ...
 ; loading
 /home/peter/chickens/chicken-5/lib/chicken/9/chicken.gc.import.so ...
 ; loading
 /home/peter/chickens/chicken-5/lib/chicken/9/chicken.platform.import.so
 ...
 ; loading
 /home/peter/chickens/chicken-5/lib/chicken/9/chicken.keyword.import.so ...
 ; loading library srfi-4 ...
 #;2> (u64vector (expt 2 64))

 Error: (u64vector-set!) out of range
 18446744073709551616
 0
 18446744073709551616

         Call history:

         <syntax>          (u64vector (expt 2 64))
         <syntax>          (expt 2 64)
         <eval>    (u64vector (expt 2 64))
         <eval>    (expt 2 64)   <--
 #;2> (u64vector (- (expt 2 64) 1))
 #u64(18446744073709551615)
 }}}

 It's even [[http://wiki.call-
 cc.org/man/5/Module%20srfi-4#constructors|documented, too]]!

--
Ticket URL: <https://bugs.call-cc.org/ticket/1462#comment:1>
CHICKEN Scheme <https://www.call-cc.org/>
CHICKEN Scheme is a compiler for the Scheme programming language.

reply via email to

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