[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Scheme-reports] fresh empty strings
Aubrey Jaffer scripsit:
> Although not required by the Scheme Reports, an implementation is free
> to make the length of a vector or string settable.
> 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
All this adds up to the simple conclusion that testing empty strings,
vectors, and bytevectors with eq? should produce implementation-dependent
John Cowan http://ccil.org/~cowan cowan@x
'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.'
Scheme-reports mailing list