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: printed representation -> C string



>I have something like this:
>
> SCM the_results = gh_eval_str ( str );
>
>And now I want to convert the_results to a nice human-readable string
>representation regardless of type.

See scm_strprint_obj, in strports.c.

But I always get a suspicious feeling when someone asks a question
like this.  Objects should almost always stay in Scheme form for as
long as possible.  Can you tell us more about what you're trying to
do?