This is the mail archive of the guile@cygnus.com mailing list for the guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: The taming of gh_eval_str()


> (with-output-to-string
>   (lambda () (write the-object-you-want-as-string)))

Yikes! ignore my last message, string-ports already exist.

Actually there is even a procedure called `SCM scm_strprint_obj( SCM obj )'
but that doesn't seem to be bound to any global symbol (was this an oversight
or for a reason?) I notice that (eval-string) is available too. Hmmm.

May I ask though why string ports need to be used inside a thunk though?
Why not just have them as free floating data objects? Is it just a style
thing or something more fundamental (I'm not saying that there is anything
wrong with them the way that they are).

	- Tel