[gambit-list] strange mutation problem (bug?) (Re: "Number of arguments exceeds implementation)

Marc Feeley feeley at iro.umontreal.ca
Sun Oct 1 21:13:25 EDT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 29-Sep-06, at 10:25 PM, Bill Richter wrote:

> Thanks, Christian & Marc, my program works fine now:
> %  gsc U7; gcc -O2 -L. -I.  U7.c U7_.c -lgambc; ./a.out
> just by changing each #(s to (vector.   And I guess is was sortuva  
> bug.

I have added checks for mutable pairs/vectors/strings in set-car!,   
set-cdr!, vector-set!, and string-set! (and in the inlined version of  
those procedures).  Gambit will now behave like this when running  
your program:

$ gsc trymutate
$ gsi trymutate
*** ERROR IN UnSpace -- (Argument 1) MUTABLE object expected
(vector-set! '#(0 8 0 0 0 0 1 0 4 0) 2 '(1 2 3 4 5 6 7 8 9))

Note: in this version (to be beta 20), the -dynamic option to gsc is  
the default.

Marc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (Darwin)

iD8DBQFFIGe2//V9Zc2T/v4RAjtZAJ9ZorTuKwCA9XMf2i9XERo/dQcEMQCdGOoJ
YSTbJDyhrdMMCVGk/hpff/c=
=7Plk
-----END PGP SIGNATURE-----



More information about the Gambit-list mailing list