[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: accumulator generator (Java)
Quoting Anton van Straaten <anton@appsolutions.com>:
> You realize that you have now opened the door to someone embedding a
> tiny
> Scheme interpreter in a Java program in bytecode form (implemented as
> a
> single class for simplicity of embedding/loading), and simply
> executing
> "(define (foo n) (lambda (i) (set! n (+ n i)) n))".
>
> Anton
>
That would be valid, too...
http://ucsu.colorado.edu/~jdp/Scheme.java
Enjoy.
Jeff
---
Jeffrey Palm --> http://www.cs.colorado.edu/~jdp