nielsAD / lape

Scripting engine with Pascal-like syntax for FPC and Delphi
119 stars 28 forks source link

Add `lcoLooseMethodDeclaration` option #189

Closed ineedbots closed 1 year ago

ineedbots commented 1 year ago

Allows a directive to enforce parentheses for method declarations. Handy for AUTOINVOKE off mode and for codetools autocomplete to provide the parentheses.

Directive name open to change.

ollydev commented 1 year ago

{$MethodDeclarationParentheses on} maybe

ollydev commented 1 year ago

Add procedure() of object function(): Boolean of object to your tests too!