Re: [Gauche-devel] typo for Scm_EvalRecCString in 0.8.8 gauche.h?
R7RS Scheme scripting engine
Status: Beta
Brought to you by:
shirok
|
From: Shiro K. <sh...@la...> - 2006-11-13 21:22:19
|
Actually the typo is in vm.c. I intended Scm_EvalCStringRec. For the time being, please use EvalRec + ReadFromCString instead. Scm_EvalRec(Scm_ReadFromCString(expr), env) Probably I'll make Scm_EvalCStringRec a macro that expands into above. BTW, the intention of this name change is to have error-safe Scm_Eval etc. With the legacy Scm_Eval etc., it was application's responsibility to catch errors that occurred in the Scheme world, but there was no convenient way to do so. It was also awkward when the evaluation yields multiple values (you could only take the first value, and needed extra API to retrieve other values). The planned new API takes an extra argument, a pointer to a structure to which the result(s) and the error information. --shiro From: "Bill Schottstaedt" <bi...@cc...> Subject: typo for Scm_EvalRecCString in 0.8.8 gauche.h? Date: Mon, 13 Nov 2006 04:48:40 -0800 > in Gauche 0.8.8 if the new eval api is not requested, Scm_EvalCStringRec is declared: > > SCM_EXTERN ScmObj Scm_EvalCStringRec(const char *form, ScmObj env); > > and used: > > #define Scm_EvalCString(f, e) Scm_EvalCStringRec(f, e) > > but I think it's name is actually Scm_EvalRecCString -- I get the error > > undefined reference to `Scm_EvalCStringRec' > |