in reply to Re: Interaction between languages in Parrot
in thread Interaction between languages in Parrot

But... If java.lang.String is a Java Class, and I create a subclass of it in Perl6, will it be possible to use the My::String::Subclass as an argument to methods defined in Java Classes?

Maybe it's just written in the statement you quote, but I couldn't be sure just by reading it (which I made before posting here in the first time)...

daniel
  • Comment on Re^2: Interaction between languages in Parrot

Replies are listed 'Best First'.
Re^3: Interaction between languages in Parrot
by duff (Parson) on Dec 19, 2005 at 21:16 UTC

    It is my understand that the mechanisms to make such linkages possible are part of parrot. The big trick though is getting languages to target parrot such that it is possible.

      But still, if the PMC is implemented differently for each language (this is what I understood, and it actually makes sense), how is it possible for code written in different languages to communicate (using more than the native types)?

      I'm really lost... ;)

      daniel

        The implementation may vary, but the interface will largely be the same. So, for instance, fetching an array element will boil down to the same "method call" on both a PerlArray PMC and an OtherLanguageArray PMC.