Open GoogleCodeExporter opened 9 years ago
It seems intended, not a bug.
The literal expression '(0) is for creating an immutable pair, so
set-car-wrapper! raises 'error in set-car!: attempt to modify literal constant
(0)'.
Instead, the following works well:
> (define a (list 0))
> (define (set-car-wrapper! list x)
(set-car! list x))
> (set-car-wrapper! a 3)
> a
(3)
>
Original comment by tabe.fix...@gmail.com
on 24 Jun 2010 at 5:10
Also, MIT/GNU Scheme runs it just fine.
Original comment by Daniel.L...@gmail.com
on 24 Jun 2010 at 1:14
Original issue reported on code.google.com by
Daniel.L...@gmail.com
on 25 Apr 2010 at 11:22