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<[email protected]> wrote: > Date: Sat, 5 Sep 2009 16:03:48 -0700 > From: Joe Marshall <[email protected]> > > 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 _______________________________________________ MIT-Scheme-devel mailing list [email protected] http://lists.gnu.org/mailman/listinfo/mit-scheme-devel
