Joe Marshall scripsit:
> At the lowest level, it is easy: you push stuff on the stack and jump
> to the entry point. There is no difference between C, C#, or Java
> at this level. The difference shows up in *what* you push, and that
> can be directed by the metadata.
It's easy if you look only at the easy case: C procedures, Java/C# public static
methods. The hard part starts after that.
A serious Java FFI has to give access to at least:
public static methods
public static fields
public instance methods
public instance fields
constructors
arrays (construct, select, mutate)
instanceof
exception throwing
exception catching
Only the first two have C counterparts.
--
John Cowan http://ccil.org/~cowan [email protected]
[P]olice in many lands are now complaining that local arrestees are insisting
on having their Miranda rights read to them, just like perps in American TV
cop shows. When it's explained to them that they are in a different country,
where those rights do not exist, they become outraged. --Neal Stephenson
_______________________________________________
r6rs-discuss mailing list
[email protected]
http://lists.r6rs.org/cgi-bin/mailman/listinfo/r6rs-discuss