Commit Graph

2 Commits

Author SHA1 Message Date
Peter Wang
7f62f7d8fa On the Java backend, a functor with the same name and arity as its type is
Branches: main, 10.04

On the Java backend, a functor with the same name and arity as its type is
given an extra "Mr_" prefix to distinguish it.  The Java implementation of
construct needs to account for the extra prefix; it does now.

library/rtti_implementation.m:
        As above.

tests/hard_coded/construct_mangle.exp:
tests/hard_coded/construct_mangle.m:
        Extend this test case.

        Add another name mangling problem, to be fixed some other time.
2010-09-30 03:16:23 +00:00
Peter Wang
4459a2e9ac The implementation of construct/3 for Java needs to take into account name
Branches: main

The implementation of construct/3 for Java needs to take into account name
mangling of module and functor names.

library/rtti_implementation.m:
        Replicate the name mangling algorithm in the construct implementation
        for Java.

compiler/prog_foreign.m:
        Add a forwarding comment if the name mangling algorithm changes.

tests/hard_coded/Mmakefile:
tests/hard_coded/construct_mangle.exp:
tests/hard_coded/construct_mangle.m:
        Add test case.
2009-08-07 06:14:29 +00:00