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]>
John Moeller wrote:
> David Abrahams wrote:
>> on Fri Jul 20 2007, John Moeller <fishcorn-AT-gmail.com> wrote:
>>
>>> 2a. Generate a Java source file where the methods wrap the function 
>>> dispatcher.
>>>
>>> Not entirely appealing, because it's a build-time solution, not a 
>>> runtime solution.  
>> Not necessarily.  If Java can compile and load source files
>> dynamically (it can, can't it?), I don't see any reason why you can't
>> generate this source file on demand at runtime.  I guess that's where
>> the "special class loader" you meantion below would come in.
> 
> It can only load and link classes dynamically.  The source is compiled 
> to bytecode as a separate build step.

Although that depends on the Java runtime one is running in. The JDK 
runtime comes with the compiler in it so it's possible to "eval" source 
code. There are probably numerous limitations though.



-- 
-- 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.