[1189] in java-interest
Re: "perform:" and Java
daemon@ATHENA.MIT.EDU (Chris Cole)
Fri Aug 25 16:15:30 1995
Date: Fri, 25 Aug 95 12:57:48 EDT
From: chris@visix.com (Chris Cole)
To: mikef@xnet.com, java-interest@java.sun.com
In-Reply-To: Doug Lea's message of Tue, 22 Aug 1995 13:11:18 -0400
Reply-To: chris@visix.com
> In other words, the Java equivalent of performing a smalltalk closure
> is something of the general form:
> 1. Translate the message string into a class (i.e., like XdoFoo)
> 2. Compile the class in the current context,
> generating bytecoded .class form
> 3. Load the compiled .class form
> 4. Create a new instance of this class with suppied arguments
> 5. Invoke the sole method of this class on this object
Yes, it works, albeit with a bit more difficulty than expected. I've
implemented a Java command line interpreter written in Java which does
exactly the above. If I get some spare time I'll clean up the source
and post it.
Chris
"If only you could see what I have seen with your eyes." -- Roy
-
Note to Sun employees: this is an EXTERNAL mailing list!
Info: send 'help' to java-interest-request@java.sun.com