[m-rev.] for review: start implementing RTTI in Mercury
Tyson Dowd
trd at cs.mu.OZ.AU
Fri Aug 17 20:08:14 AEST 2001
> @@ -180,17 +180,32 @@
>
> %-----------------------------------------------------------------------------%
> %-----------------------------------------------------------------------------%
> +%
> +% XXX we have only implemented the .NET backend for the low-level data case.
>
> :- pred get_type_ctor_info(type_info::in, type_ctor_info::out) is det.
>
> - % XXX Some bug in the handling of foreign_proc IL stopped me
> - % implementing this in IL directly, so for the moment I will just work
> - % around it by calling the IL from C#. -- trd.
> +:- pragma foreign_decl("C#", "
> +
> + enum type_ctor_info_field_nums {
> + type_ctor_rep = 4,
> + type_ctor_module_name = 7,
> + type_ctor_name = 8,
> + type_layout = 11
> + }
> +
> +").
> +
> +
This should be foreign_code not foreign_decl.
I've fixed this already, before the commit.
--------------------------------------------------------------------------
mercury-reviews mailing list
post: mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------
More information about the reviews
mailing list