On Jun 22, 2009, at 12:35 PM, Derick Eddington wrote:

> The eval approach could be made to work by following the predicate I
> posted.  It would buy needing to specially handle a few less  
> identifiers
> and not needing the tiny auxiliary libraries.  Some people might not
> like using eval when libraries can do it.

It's very likely that you'd get into more portability trouble using eval
than you would using auxiliary libraries.  For example, using Ramana's
code, I changed the environment specifier to be

   (define (env prefix)
     (environment
       `(for (prefix (only (rnrs) syntax) ,prefix) run (meta -1))))

and that made it work (minor testing only) for Larcney.

In Ypsilon, I get:

error in datum->syntax: identifer a:syntax out of context

And in PLT, I get:

#%require: no such provided variable at: syntax in: (#%require r6rs/ 
private/prelims (just-meta 1 (for-meta #f (rename (lib "rnrs/ 
main.ss") a:syntax syntax))) (just-meta 0 (for-meta #f (rename (lib  
"rnrs/main.ss") a:syntax syntax))) (for-meta #f (only (lib "rnrs/ 
main.ss"))) (for-meta #f r6rs/private/preli...

  === context ===
/Applications/PLT Scheme v4.1/collects/rnrs/eval-6.ss:29:0: environment


Aziz,,,


_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss

Reply via email to