This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: bug in append!


On Mon, Oct 18, 1999 at 01:39:28PM +0200, Roland Orre wrote:
> Ivan Toshkov <ivant@intransco.com> wrote:
> > guile> (define a '())
> > guile> (append! a '(b))
> > (b)
> > guile> a
> > ()
> This is not a bug. Scheme does not work this way, append! can only
> append concatenate destructively if there is at least one pair
> in the list. To be safe you have to
> (set! a (append! a '(b)))
maybe you mean (set! a (append a '(b))) ?
yes, that works and that's the way I rewrote it..
> 
> By the way, do you know any scheme that behaves in that way?
Can't remember... though I think that it worked on some version of Texas Instruments Scheme (very unsure about that)
> 
> 	Best regards
> 	Roland

-- 
Ivan Toshkov

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]