Hi Daniel, On Wed 23 Jan 2013 10:06, Andy Wingo <wi...@pobox.com> writes:
> On Tue 22 Jan 2013 15:31, Daniel Llorens <daniel.llor...@bluewin.ch> writes: > >> On Jan 21, 2013, at 17:11, Andy Wingo wrote: >> >> The patch attached applies over yours and is to document this function >> and a couple others in the manual. > > Thanks, applied and pushed to wip-generalized-vectors. I'll merge this branch shortly, as there have been no objections. >> Maybe we should have scm_array_ref_1, scm_array_ref_2, etc. as it is >> done for some other functions taking rest lists. I can write a patch >> for that. > > For C, that makes sense. Something should be done for Scheme as well, > but it's not terribly urgent. Perhaps make scm_array_ref not be bound > to "array-ref", and instead bind "array-ref" to some function that takes > two optional arguments and a rest argument. A poor man's case-lambda... I have implemented this in stable-2.0. It should speed up array operations from Scheme significantly. Andy -- http://wingolog.org/