mirror of
https://github.com/Mercury-Language/mercury.git
synced 2025-12-17 14:57:03 +00:00
A few minor fixes promped by petdr's addition of support for value types
Estimated hours taken: 0.5 Branches: main A few minor fixes promped by petdr's addition of support for value types for foreign_type. compiler/ilasm.m: compiler/ilds.m: compiler/mlds_to_csharp.m: compiler/mlds_to_il.m: compiler/mlds_to_mcpp.m: Mirror the IL syntax more closely, use valuetype instead of value_class. compiler/prog_data.m: Add some comments and improve formatting of type declarations for pragma foreign_type. doc/reference_manual.texi: Improve the documentation wording for pragma foreign_type, and remove the XXX saying that we should accept value types, because we now accept value types.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
%-----------------------------------------------------------------------------%
|
||||
% Copyright (C) 2001 The University of Melbourne.
|
||||
% Copyright (C) 2001-2002 The University of Melbourne.
|
||||
% This file may only be copied under the terms of the GNU General
|
||||
% Public License - see the file COPYING in the Mercury distribution.
|
||||
%-----------------------------------------------------------------------------%
|
||||
@@ -490,7 +490,7 @@ write_il_simple_type_as_csharp_type(refany) -->
|
||||
io__write_string("mercury.MR_RefAny").
|
||||
write_il_simple_type_as_csharp_type(class(ClassName)) -->
|
||||
write_csharp_class_name(ClassName).
|
||||
write_il_simple_type_as_csharp_type(value_class(_ClassName)) -->
|
||||
write_il_simple_type_as_csharp_type(valuetype(_ClassName)) -->
|
||||
{ sorry(this_file, "value classes") }.
|
||||
write_il_simple_type_as_csharp_type(interface(_ClassName)) -->
|
||||
{ sorry(this_file, "interfaces") }.
|
||||
|
||||
Reference in New Issue
Block a user