[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-hackers] Symbols and immutability

From: John Cowan
Subject: Re: [Chicken-hackers] Symbols and immutability
Date: Sun, 13 Apr 2008 16:08:07 -0400
User-agent: Mutt/1.5.13 (2006-08-11)

Peter Bex scripsit:

> I just submitted a ticket for a nasty bug, #433
> What are your thoughts on how to solve this issue?

This is the classic modifying-symbol-printname bug.  Most Lisp
specifications including R5RS and ANSI CL say this is undefined behavior
(meaning demons may fly out of your nose if you do it); implementations
typically either ignore the problem (as Chicken does today), make a copy
of the string, or mark the string immutable.  I think the last solution
would be unsuitable for Chicken, and favor the copying strategy.

When I'm stuck in something boring              John Cowan
where reading would be impossible or            (who loves Asimov too)
rude, I often set up math problems for          address@hidden
myself and solve them as a way to pass
the time.      --John Jenkins

reply via email to

[Prev in Thread] Current Thread [Next in Thread]