[fpc-pascal] Callbacks as nested functions
    Adriaan van Os 
    fpc at microbizz.nl
       
    Sat Oct 28 11:49:45 CEST 2017
    
    
  
Ryan Joseph wrote:
> 
>> On Oct 23, 2017, at 9:05 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
>>
>> It is not the default because neither Delphi nor TP allow this.
> 
> then that begs the question, why not? :) If local functions are a useful feature then local callbacks should be too.
Because
1. it takes a few extra processor cycles
2. it breaks binary compatibilty.
For a detailed discussion, see <https://bugs.freepascal.org/view.php?id=15925>
Regards,
Adriaan van Os
    
    
More information about the fpc-pascal
mailing list