mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-10 19:33:11 +00:00
External references are no longer associated with the MC++
Estimated hours taken: 0.25 Branches: main compiler/mlds_to_il.m: External references are no longer associated with the MC++ instead they are associated with the C# file, and it is still hacky!
This commit is contained in:
@@ -1021,11 +1021,11 @@ generate_method(_, IsCons, defn(Name, Context, Flags, Entity), ClassMember) -->
|
||||
;
|
||||
{ MaybeStatement = external },
|
||||
|
||||
% XXX The external reference must currently reside in
|
||||
% MC++ file associated with this file. This is very hackish.
|
||||
% XXX The external reference must currently reside in the
|
||||
% C# file associated with this file. This is very hackish.
|
||||
ForeignLangs =^ file_foreign_langs,
|
||||
^ file_foreign_langs :=
|
||||
set__insert(ForeignLangs, managed_cplusplus),
|
||||
set__insert(ForeignLangs, csharp),
|
||||
|
||||
{ mangle_dataname_module(no, ModuleName, NewModuleName) },
|
||||
{ ClassName = mlds_module_name_to_class_name(NewModuleName) },
|
||||
|
||||
Reference in New Issue
Block a user