Re: external

Daniel Bonniot <[email protected]> Mon, 20 Jun 2005 10:58:03 +0200
Newsgroups gmane.comp.lang.nice.general
Message-ID <[email protected]>
> Daniel's point about being nice to all possible languages using the
> library is a good one but I'd still like to provide the full power of
> Nice to other Nice packages.  Thus for integration I'd probably be
> writing method pairs like:
> 
>   public          int foo (int->int f) ...
> 
>   public external int fooJ(Callable c)
>     = foo( int i => c.call(i) )

Actually, anonymous functions are already compiled in this way.

> If some idiomatic mapping could be determined for the Java-hard parts
> of the method protocol then these could potentially be generated by
> the compiler.  On the other hand that mapping might be JDK version
> limited/linked.

Exactly. The compiler has to compile to something meaningful to the JVM 
anyway. Tuples to arrays of the most precise type, for instance. If something 
is not satisfactory yet, point it out.

Is still don't see what external would be good for.

Daniel


-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click