[m-dev.] Re: foreign_type
dong yang
berlinchinese at yahoo.de
Tue Apr 16 03:06:22 AEST 2002
--- Peter Ross <pro at missioncriticalit.com> schrieb: >
> On Mon, Apr 15, 2002 at 01:53:18PM +0200, Dong Yang
> wrote:
> > hi,
> > I didn't understand, what by the IL backend so
> compilcated handeled.
> > for the java backend , I think if anyway only the
> java foreign proc
> > actually use the foreign_java_type, why I can't
> just use it as it was
> > without modifications?
> > for example:
> > foreign_type("java", javabutton, "JButton");
> > :- type javabutton
> >
> > foreign_proc myproc(javabutton::in....
> >
> >
> > and the java source:
> > myproc_1_1(JButton...)
> >
>
> I am not sure I completely understood your question,
> but I think you are
> refering to the fact that the foreign_type
> structures in the compiler
> are very related to how we do things on the .NET
> backend (ie we store
> whether something is a reference or value type,
> where the type is
> located and so on). Am I correct?
>
> I have refactored that code as part of my change to
> allow C foreign
> types, see
>
>
http://www.cs.mu.oz.au/research/mercury/mailing-lists/mercury-reviews/mercury-reviews.0203/0045.html
>
> Unfortunately I haven't addressed the review
> comments on this yet, nor
> checked it in. If this is what you are referring
> do, would the changes
> I made help you?
>
> Regards,
> Peter
>
> PS. In future it is better to ask questions like
> this on
> mercury-developers so that all the Mercury
> developers can answer you
> questions.
>
--------------------------------------------------------------------------
> mercury-developers mailing list
> Post messages to:
> mercury-developers at cs.mu.oz.au
> Administrative Queries:
> owner-mercury-developers at cs.mu.oz.au
> Subscriptions:
> mercury-developers-request at cs.mu.oz.au
>
--------------------------------------------------------------------------
sorry full quote,
if the code is also include the c foreign code for the
il backend, then i can undertand it better now. now
again i try to refomulate my question:
if the freign_type and the backend are both java, the
implementation shuld be very easy or not?
regards
Andree
__________________________________________________________________
Gesendet von Yahoo! Mail - http://mail.yahoo.de
Sie brauchen mehr Speicher für Ihre E-Mails? - http://premiummail.yahoo.de
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list