mit-scheme-devel
[Top][All Lists]
Advanced

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

Re: [MIT-Scheme-devel] SUBSTRING and SET-STRING-MAXIMUM-LENGTH!


From: Joe Marshall
Subject: Re: [MIT-Scheme-devel] SUBSTRING and SET-STRING-MAXIMUM-LENGTH!
Date: Sat, 5 Sep 2009 16:29:27 -0700

I assumed that SET-STRING-MAXIMUM-LENGTH! was called for
efficiency reasons, otherwise SUBSTRING would work just fine.

On Sat, Sep 5, 2009 at 4:06 PM, Taylor R Campbell<address@hidden> wrote:
>   Date: Sat, 5 Sep 2009 16:03:48 -0700
>   From: Joe Marshall <address@hidden>
>
>   Would this work?
>
>   DEFINE_PRIMITIVE ("STRING-HEAD!", Prim_set_string_maximum_length, 2, 2, 0)
>   ...                                   (^^^^^^^^^^^^^^^^^^^^^^^^^?)
>
> Why not just write it in Scheme, with a comment about why it has to
> check whether SET-STRING-MAXIMUM-LENGTH! worked?
>



-- 
~jrm




reply via email to

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