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

Re: [Scheme-reports] fresh empty strings



Oh dear, I seem to be trolling...

On Mon 23 Jan 2012 21:16, Ray Dillinger <bear@x> writes:

> On 01/23/2012 07:03 AM, Andy Wingo wrote:
>> strings of one character *cannot* be immediates.
>
> That's just not true.

  (eq? (string #\a) (string #\a)) => ?

If they were immediates, #t.  If they were not immediates, #f.

> You don't have to heap-allocate strings until can no longer prove that
> you have only one reference to the string.

Granted, but this is a very special case.

Andy
-- 
http://wingolog.org/

_______________________________________________
Scheme-reports mailing list
Scheme-reports@x
http://lists.scheme-reports.org/cgi-bin/mailman/listinfo/scheme-reports