On Mon, Aug 25, 2008 at 03:29:30PM -0300, Alonso Andres wrote: > Hello, > > it seems that defstruct on a copy or set! operation doesn't let you > set the value of a field to an empty list. > > Probably a fix for this would be iterating through the arguments list > to know which keys weren't really informed. Or maybe Chicken has > another method to know this that I'm not aware.
This was a silly mistake of mine (empty list is eq? to an empty list, but a list with anything in it creates a new unique cons cell, which is what that code should have done). Thanks for catching it! It's been fixed and tagged. The new version 1.1 (with an additional hygiene issue fixed) should be available for download shortly. Cheers, Peter -- http://sjamaan.ath.cx -- "The process of preparing programs for a digital computer is especially attractive, not only because it can be economically and scientifically rewarding, but also because it can be an aesthetic experience much like composing poetry or music." -- Donald Knuth
pgpWwArABcawc.pgp
Description: PGP signature
_______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
