This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question regarding procedure compilation


Per Bothner wrote:

> ...
> Why not just:
>   return (Procedure) scheme.eval("(lambda () "+rule+")");
> 
> It's not perfect (for one thing a syntax error will display the
> wrong column number), but it is simple and documented.

Scheme.eval(InPort, Envronment) can be used to get the column number right.

http://www.gnu.org/software/kawa/Evaluating-Scheme-expressions-from-Java.html

Jim


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