On 2012-12-05, at 12:02 PM, Bradley Lucier lucier@math.purdue.edu wrote:
Marc:
I've been hacking on _num.scm a bit and came across the following naming situation:
heine:~/programs/gambit/lib> grep 'fixnum.*bitwise' *gambit*.scm _gambit#.scm:;;; ##fixnum.bitwise-ior ##fixnum.bitwise-xor _gambit#.scm:;;; ##fixnum.bitwise-and ##fixnum.bitwise-not
<more stuff omitted> heine:~/programs/gambit/lib> grep 'fxbitwise' *gambit*.scm heine:~/programs/gambit/lib>
In making mass changes of ##fixnum.* names to ##fx* names in my codeI found out that ##fxbitwise-ior, etc., are not internal names for procedures.
Should these be changed?
Brad
Gambit uses the R6RS names :
(list (bitwise-ior 5 3) (fxior 5 3))
(7 7)
(list (bitwise-and 5 3) (fxand 5 3))
(1 1)
(list (bitwise-xor 5 3) (fxxor 5 3))
(6 6)
(list (bitwise-not 5) (fxnot 5))
(-6 -6)
Marc