Browse Source

+ add modeswitch for anonymous functions

Sven/Sarah Barth 4 years ago
parent
commit
4e4d268963
2 changed files with 6 additions and 3 deletions
  1. 4 2
      compiler/globtype.pas
  2. 2 1
      compiler/utils/ppuutils/ppudump.pp

+ 4 - 2
compiler/globtype.pas

@@ -530,7 +530,8 @@ interface
          m_prefixed_attributes, { enable attributes that are defined before the type they belong to }
          m_prefixed_attributes, { enable attributes that are defined before the type they belong to }
          m_underscoreisseparator,{ _ can be used as separator to group digits in numbers }
          m_underscoreisseparator,{ _ can be used as separator to group digits in numbers }
          m_implicit_function_specialization,    { attempt to specialize generic function by inferring types from parameters }
          m_implicit_function_specialization,    { attempt to specialize generic function by inferring types from parameters }
-         m_function_references  { enable Delphi-style function references }
+         m_function_references, { enable Delphi-style function references }
+         m_anonymous_functions  { enable Delphi-style anonymous functions }
        );
        );
        tmodeswitches = set of tmodeswitch;
        tmodeswitches = set of tmodeswitch;
 
 
@@ -725,7 +726,8 @@ interface
          'PREFIXEDATTRIBUTES',
          'PREFIXEDATTRIBUTES',
          'UNDERSCOREISSEPARATOR',
          'UNDERSCOREISSEPARATOR',
          'IMPLICITFUNCTIONSPECIALIZATION',
          'IMPLICITFUNCTIONSPECIALIZATION',
-         'FUNCTIONREFERENCES'
+         'FUNCTIONREFERENCES',
+         'ANONYMOUSFUNCTIONS'
          );
          );
 
 
 
 

+ 2 - 1
compiler/utils/ppuutils/ppudump.pp

@@ -2437,7 +2437,8 @@ const
          'm_prefixed_attributes', { enable attributes that are defined before the type they belong to }
          'm_prefixed_attributes', { enable attributes that are defined before the type they belong to }
          'm_underscoreisseparator',{ _ can be used as separator to group digits in numbers }
          'm_underscoreisseparator',{ _ can be used as separator to group digits in numbers }
          'm_implicit_function_specialization', { attempt to specialize generic function by inferring types from parameters }
          'm_implicit_function_specialization', { attempt to specialize generic function by inferring types from parameters }
-         'm_function_references'  { enable Delphi-style function references }
+         'm_function_references', { enable Delphi-style function references }
+         'm_anonymous_functions'  { enable Delphi-style anonymous functions }
        );
        );
        { optimizer }
        { optimizer }
        optimizerswitchname : array[toptimizerswitch] of string[50] =
        optimizerswitchname : array[toptimizerswitch] of string[50] =