[m-dev.] RTTI question?

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Feb 7 03:36:09 AEDT 2002


On 06-Feb-2002, Peter Ross <peter.ross at miscrit.be> wrote:
>     ldsfld  object[]
>             ['mercury']'mercury'.'private_builtin__cpp_code'.'mercury_code'::'private_builtin__type_info_typeclass_info_1__type0_8___void_0'
>     castclass   object
>     stelem.ref
> 
> Where does private_builtin__type_info_typeclass_info_1__type0_8___void_0
> come from?

That mangled name means the type_info for the type
`private_builtin:typeclass_info(builtin:void)', I think.

It should be generated as a pseudo_type_info rtti_data by
the RTTI code (type_ctor_info.m?),
then converted to MLDS by rtti_to_mlds.m,
then converted to IL by mlds_to_il(asm).m.

> As it is not being generated.

One thing to check is that the problem might be related to
whether or not `void' is module qualified with `builtin__'.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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