Re: [racket] Bug in bitwise-bit-field

2014-06-16 Thread Matthew Flatt
I've pushed a repair to `bitwise-bit-field`. Thanks for the report! At Tue, 17 Jun 2014 07:32:22 +0400, Roman Klochkov wrote: > > ;; from Racket reference 4.2.2.6 > (define (bitwise-bit-field* n start end) >    (bitwise-and (sub1 (arithmetic-shift 1 (- end start))) >                            (

Re: [racket] Bug in bitwise-bit-field

2014-06-16 Thread Richard Cleis
What do you get when you evaluate #b11100010 ? rac On Jun 16, 2014, at 9:32 PM, Roman Klochkov wrote: > ;; from Racket reference 4.2.2.6 > (define (bitwise-bit-field* n start end) >(bitwise-and (sub1 (arithmetic-shift 1 (- end start))) >(ar

[racket] Bug in bitwise-bit-field

2014-06-16 Thread Roman Klochkov
;; from Racket reference 4.2.2.6 (define (bitwise-bit-field* n start end)    (bitwise-and (sub1 (arithmetic-shift 1 (- end start)))                            (arithmetic-shift n (- start > (bitwise-bit-field #b11100010 0 31) -30 > (bitwise-bit-field* #b111