Re: Weird Guile Scheme Behaviour

2019-10-16 Thread Philip K.
Mark H Weaver writes: > The problem here is that '(start) is a *literal* list, and it's an error > to modify literals in Scheme. In other words, modifying a literal > results in undefined behavior. Like C string literals, Scheme literals > are actually part of the program text itself. Ah,

Re: Weird Guile Scheme Behaviour

2019-10-16 Thread Mark H Weaver
Hi Philip, phi...@warpmail.net (Philip K.) writes: > I was reading a thread on an imageboard[0] the other day, then I came > across a most peculiar "bug", if it even is one. Since the original > example was a bit dense (it tried to solve a problem someone else had > posted, that's not relevant

Re: Weird Guile Scheme Behaviour

2019-09-13 Thread Vladimir Zhbanov
Philip, On Fri, Sep 13, 2019 at 11:43:06AM +0200, Philip K. wrote: > > Hi, > > I was reading a thread on an imageboard[0] the other day, then I came > across a most peculiar "bug", if it even is one. Since the original > example was a bit dense (it tried to solve a problem someone else had >

Re: Weird Guile Scheme Behaviour

2019-09-13 Thread Neil Jerram
Correct usage of append! usually requires (set! x (append! x )), despite what you might think from the !. I haven't read the rest of your email carefully, but I wonder if that will make a difference? Best wishes, Neil On Fri, 13 Sep 2019 at 13:39, Philip K. wrote: > > Hi, > > I was