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. > 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... > It makes sense to let vector- work on uniform vectors because the > implementation should be identical. FWIW this is not the case. Vectors hold SCM objects, whereas uniform vectors hold unpacked machine values. It's possible to have a one-dimensional slice of a uniform array also. Now on to your next mail... Andy -- http://wingolog.org/