[Scheme-reports] fresh empty strings Andy Wingo (20 Jan 2012 21:35 UTC)
Re: [Scheme-reports] fresh empty strings Andy Wingo (20 Jan 2012 22:03 UTC)
Re: fresh empty strings Arthur A. Gleckler (20 Jan 2012 22:55 UTC)
Re: [Scheme-reports] fresh empty strings John Cowan (21 Jan 2012 03:36 UTC)
Re: fresh empty strings Arthur A. Gleckler (21 Jan 2012 06:56 UTC)
Re: [Scheme-reports] fresh empty strings Andy Wingo (21 Jan 2012 13:24 UTC)
Re: [Scheme-reports] fresh empty strings John Cowan (21 Jan 2012 13:34 UTC)
Re: [Scheme-reports] fresh empty strings Andy Wingo (21 Jan 2012 13:47 UTC)
Re: [Scheme-reports] fresh empty strings John Cowan (21 Jan 2012 14:38 UTC)
Re: [Scheme-reports] fresh empty strings Aubrey Jaffer (21 Jan 2012 18:31 UTC)
Re: [Scheme-reports] fresh empty strings John Cowan (21 Jan 2012 19:04 UTC)
Re: [Scheme-reports] fresh empty strings Ray Dillinger (21 Jan 2012 17:05 UTC)

Re: [Scheme-reports] fresh empty strings John Cowan 21 Jan 2012 19:04 UTC

Aubrey Jaffer scripsit:

> Although not required by the Scheme Reports, an implementation is free
> to make the length of a vector or string settable.

[snip]

> If (eq? (vector) (vector)), then (vector-set-length! (vector) 3) would
> affect all empty vectors, not a good thing.

Quite so, and such an implementation should certainly not make all empty
vectors eq?.

All this adds up to the simple conclusion that testing empty strings,
vectors, and bytevectors with eq? should produce implementation-dependent
results.

--
John Cowan   http://ccil.org/~cowan   cowan@ccil.org
'My young friend, if you do not now, immediately and instantly, pull
as hard as ever you can, it is my opinion that your acquaintance in the
large-pattern leather ulster' (and by this he meant the Crocodile) 'will
jerk you into yonder limpid stream before you can say Jack Robinson.'
        --the Bi-Coloured-Python-Rock-Snake

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