firstname.lastname@example.org (RT Happe) writes:
> On 4 Nov 2002, George Demmy wrote:
> > format.scm represents an implementation of modest subset of Common
> > Lisp's format. A more complete implementation can be found in Aubrey
> > Jaffer's SLIB.
> Have you tried that with scsh *and* success, i.e. did that implementation
> pass slib's test suite? When I checked slib's FORMAT with my modular
> wrapper (instead of slib's dynamic loading mechanism), it didn't work that
> well. Cf.
> Therefore I think the original poster might be better off with the
> string-lib solution he suggested himself.
My post was too terse, and upon re-reading it might appear that I
ignored the original post. Sorry about that. The point I was wanting
to get across was that if the original poster was hell-bent to roll
his own formatting functions, then he might consider lifting the
format *design* from Common Lisp and or SLIB, and maybe some of the
source code from SLIB as well. That's why the CL Hyperspec link was in
my post. If the goal is a truly one-off and "format functionality
never to be used again", then kluging something together with SRFI-13
stuff might be a good compromise. But if the goal is to kludge
something together to get it out the door as soon as possible, one
might consider using PERL ;) Down that path path lies madness,
however. The spirit of scsh abhors a kludge and is tormented by
To answer your question, I have not tried calling SLIB from scsh, but
I have mucked about with SLIB with other scheme implementations and I
have lifted portions of SLIB code for one-off hacks and I like SLIB's
thorough documentation -- hence the recommendations.