Opened 4 years ago

Closed 4 years ago

#507 closed defect (fixed)

R6RS/R7RS incompatibility of bytevector-copy! procedure

Reported by: cowan Owned by: alexshinn
Priority: major Milestone:
Component: WG1 - Core Keywords:


Per Bothner writes:

I just noticed one unresolvable incompatibility with R6RS:

(bytevector-copy! bv1 i bv2 j k)

In R6RS this copies bv1[i..i+k-1] into bv2[j..j+k-1]. In the draft, it copies bv2[j..k-1] into bv1[i..i+(k-j)-1]. Ouch. OTOH, I think R6RS got this one wrong: Mutable operations in Scheme have the target ("left-hand") value first, and the source ("right-hand") value last.

Change History (2)

comment:1 Changed 4 years ago by cowan

I have added a note to the 10th draft warning that R6RS is different.

comment:2 Changed 4 years ago by cowan

  • Resolution set to fixed
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.