[plt-scheme] inf.0 and nan.0 in embeded program

From: Chongkai Zhu (u0476504 at utah.edu)
Date: Sat Mar 4 12:02:15 EST 2006

I think this is more poor, because to call scheme_eval_string, I need to
do all these things:

  mz_jmp_buf * volatile save, fresh;
  ...
  save = scheme_current_thread->error_buf;
  scheme_current_thread->error_buf = &fresh;
  if (scheme_setjmp(scheme_error_buf)) {
    /* There was an error */
    scheme_current_thread->error_buf = save;
    ...
  } else {
    v = scheme_eval_string("+inf.0", env);
    scheme_current_thread->error_buf = save;
  }

Sincerely,
Chongkai Zhu  

======= At 2006-03-03, 19:12:31 Danny Yoo wrote: =======

>
>
>On Fri, 3 Mar 2006, Chongkai Zhu wrote:
>
>> In my C program that embeds mzscheme, I would like to have Scheme_object
>> that is "+inf.0"/ "-inf.0"/"+nan.0".
>
>Hi Chongkai,
>
>How about using scheme_eval_string("+inf.0", ...) to get at those
>constants?
>
>
>Best of wishes!
>
>



Posted on the users mailing list.