Re: [Java] Function Binding Redux (long post)
Rene Rivera <[email protected]>
| Newsgroups | gmane.comp.lib.boost.langbinding |
|---|---|
| Organization | Redshift Software, Inc. |
| Message-ID | <[email protected]> |
Rene Rivera wrote:
> What I don't
> know is how the Java compiler could be made to work without actual
> *.class files.
Thinking a bit more about this... It should be easy to create a test for
this. Just:
* Create a Java source file which declares a native class.
* Compile that to the *.class equivalent.
* Write a library that implements the basic algo I mentioned, but is
hardwired to:
* Load in the contents of the *.class file.
* Bind a method from the Java class to an arbitrary C++ function.
* Create a second Java class that subclasses, or otherwise uses, the
library class and that does the System.loadLibrary before defining the
class.
* Try and compile the new class.
--
-- Grafik - Don't Assume Anything
-- Redshift Software, Inc. - http://redshift-software.com
-- rrivera/acm.org - grafik/redshift-software.com
-- 102708583/icq - grafikrobot/aim - grafikrobot/yahoo
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/