On Thu, Apr 08, 2010 at 11:09:50AM -0400, John Cowan wrote: > Thomas Chust scripsit: > > > I consider it extremely bad style to rely on the mutability of > > literals, so I wouldn't mind if structurally equal literal constants > > were folded, whether there is inlining involved or not. > > +1. I would never intentionally write code that mutated a literal.
+1 from me too. Besides this, I don't know if it can be easily done, but it would be great if the system could actually throw an error when you tried to do that. A mistake is easily made :) 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 _______________________________________________ Chicken-hackers mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-hackers
