From 09cd7f1642b5eb08a4e6c271e4d59269f45f03a0 Mon Sep 17 00:00:00 2001 From: peter Date: Mon, 22 Oct 2001 21:20:46 +0000 Subject: [PATCH] * overloaded functions don't need to be global in kylix --- compiler/psub.pas | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/compiler/psub.pas b/compiler/psub.pas index 70c0ad0cbb..fb1c1f3c8b 100644 --- a/compiler/psub.pas +++ b/compiler/psub.pas @@ -660,8 +660,10 @@ implementation end else begin - { check the global flag } - if (procinfo^.flags and pi_is_global)<>0 then + { check the global flag, for delphi this is not + required } + if not(m_delphi in aktmodeswitches) and + ((procinfo^.flags and pi_is_global)<>0) then Message(parser_e_overloaded_must_be_all_global); end; end; @@ -841,7 +843,10 @@ implementation end. { $Log$ - Revision 1.38 2001-10-01 13:38:45 jonas + Revision 1.39 2001-10-22 21:20:46 peter + * overloaded functions don't need to be global in kylix + + Revision 1.38 2001/10/01 13:38:45 jonas * allow self parameter for normal procedures again (because Kylix allows it too) ("merged")