guile-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

array-map! source args


From: Kevin Ryde
Subject: array-map! source args
Date: Tue, 14 Dec 2004 10:22:08 +1100
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

I think the change in 1.6 to array-map! to check for no source args is
too strict, it rejects one source arg, eg.

        (array-map! #(1 2) noop #(3 4))
        =>
        <unnamed port>:1:7: In procedure array-map! in expression (array-map! 
#(1 2) noop ...):
        <unnamed port>:1:7: At least one source array is required.
        ABORT: (misc-error)

I'm thinking of

        * ramap.c (scm_array_map_x): Correction to sources list check, only
        need at least one source, not two.  And use SCM_WRONG_NUM_ARGS() for
        the error.

Likewise in the head (which hasn't had this check at all yet).

Attachment: ramap.c.sources.diff
Description: Text document

Attachment: ramap.test
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]