[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compiled S-Expressions
Quoting Brent Fulgham:
> When an s-expression has a side effect, such as
>
> "(display "foo")"
>
> and it is compiled using the C API's scheme_compile
> function, are the side effects still generated when
> the resulting compiled expression is evaluated?
Yes. (The side-effects are not generated when the expression is
compiled.)
> [...]
>
> However, this doesn't compile because scheme_read_syntax is
> not exported in scheme.h.
Use scheme_read() instead of scheme_read_syntax().
scheme_read_syntax() is new, the first little step in the new
syntax/module system. It will be exported in the next release.
Matthew