---------- Forwarded message ---------
From: Damien Mattei <damien.mat...@gmail.com>
Date: Tue, Jan 11, 2022 at 9:34 PM
Subject: Re: guile array different than srfi 25
To: lloda <ll...@sarc.name>


sorry i have no time for this, perhaps only the creation of array differs
regards
Damien

On Tue, Jan 11, 2022 at 6:22 PM lloda <ll...@sarc.name> wrote:

>
> Guile arrays were implemented before srfi-25 existed and aren't supposed
> to be compatible with it. There are many other array srfis all with
> incompatible syntaxes...
>
> However srfi-25 is tiny so it should be really simple to implement it on
> top of Guile arrays. If you or anyone else submits a patch, I'm sure it
> will be considered.
>
> Regards
>
> Daniel
>
>
> On 11 Jan 2022, at 12:19, Damien Mattei <damien.mat...@gmail.com> wrote:
>
> hello,
>
> why guile array differs from SRFI 25:
> make-array syntax :
>  https://www.gnu.org/software/guile/manual/html_node/Array-Procedures.html
>
> (make-array 'ho 2 3) ⇒ #2((ho ho ho) (ho ho ho))
>
> different than srfi 25:
>
> https://srfi.schemers.org/srfi-25/srfi-25.html
>
> (make-array shape obj)
>
>
> Returns a newly allocated array whose shape is given byshape.  If obj is 
> provided, then each element is
> initialized to it. Otherwise the initial contents of each element is
> unspecified. The array does not retain a dependence toshape.
>
> it creates incompatibilties in code .
>
> Damien
>
>
>

Reply via email to