Re: [Scheme-reports] vector-insert John Cowan (19 Aug 2014 17:26 UTC)
Re: [Scheme-reports] vector-insert Pierpaolo Bernardi (19 Aug 2014 18:30 UTC)
Re: [Scheme-reports] vector-insert John Cowan (19 Aug 2014 19:01 UTC)
Re: [Scheme-reports] vector-insert Pierpaolo Bernardi (20 Aug 2014 00:38 UTC)

Re: [Scheme-reports] vector-insert John Cowan 19 Aug 2014 17:22 UTC

Alan Watson scripsit:

> If I understand correctly, when the first element is assigned to the
> new vector, surely the implementation would have to clear the bit and
> initialise the other elements?

That would be the safe thing, yes, but R7RS does not explicitly require either
safety or unsafety.  I would not want to standardize anything that can't be
made safe, but an unsafe implementation that can only be used in limited
ways (viz. you are not allowed to gc the source vector until the destination
vector is fully initialized) isn't necessarily unusable.

--
John Cowan          http://www.ccil.org/~cowan        cowan@ccil.org
At the end of the Metatarsal Age, the dinosaurs abruptly vanished.
The theory that a single catastrophic event may have been responsible
has been strengthened by the recent discovery of a worldwide layer of
whipped cream marking the Creosote-Tutelary boundary.  --Science Made Stupid

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