[m-dev.] IL grade

Tyson Dowd trd at cs.mu.OZ.AU
Tue May 21 08:47:45 AEST 2002


On 16-May-2002, Zoltan Somogyi <zs at cs.mu.OZ.AU> wrote:
> On 15-May-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> > > > - definitions for undefined library types (c_pointer, type_desc)
> > 
> > Can you consider using pragma foreign_type for all of these types.  This
> > avoids any casts plus it will allow easier porting to the IL backend.
> 
> But the type_desc is not a foreign type; it is a builtin type. The compiler can
> be taught to handle them specially just like it handles integers and floats
> specially in the foreign language interface.

I didn't think there was necessarily a distinction between foreign types
and builtin types like this.  I thought we could implement a builtin
type as a foreign type if we wished.

-- 
       Tyson Dowd           # 
                            #  Surreal humour isn't everyone's cup of fur.
     trd at cs.mu.oz.au        # 
http://www.cs.mu.oz.au/~trd #
--------------------------------------------------------------------------
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