[fpc-devel] Idea/question about a language (syntax) extension

Flávio Etrusco flavio.etrusco at gmail.com
Tue Dec 22 06:10:35 CET 2009


On Tue, Dec 22, 2009 at 1:42 AM, Paul Ishenin <ip at kmiac.ru> wrote:
> 22.12.2009 11:30, Flávio Etrusco wrote:
>>
>> Hi all,
>> I want to propose a syntax extension for the compiler to check
>> parameters' name on function/procure calls. Would such a patch be
>> accepted? Does anybody have a suggestion for the  syntax? (i guess
>> something along the line of a compiler directive to go together with
>> the parameter value to avoid syntax incompatibility...)
>
> You mean something like Basic has:
>
> CallSomething(Arg1=10, Arg2='Test') ?
>
> Best regards,
> Paul Ishenin.
>



On Tue, Dec 22, 2009 at 1:42 AM, Paul Ishenin <ip at kmiac.ru> wrote:
> 22.12.2009 11:30, Flávio Etrusco wrote:
>>
>> Hi all,
>> I want to propose a syntax extension for the compiler to check
>> parameters' name on function/procure calls. Would such a patch be
>> accepted? Does anybody have a suggestion for the  syntax? (i guess
>> something along the line of a compiler directive to go together with
>> the parameter value to avoid syntax incompatibility...)
>
> You mean something like Basic has:
>
> CallSomething(Arg1=10, Arg2='Test') ?
>
> Best regards,
> Paul Ishenin.
>

Exactly! I didn't know/remember Basic had that. Oh well, another
feature I'll have to appreciate in VB (along with the - shell-like,
but poorly implemented - "begin block by default" and specific block
closers) despite my despise for the language ;-)

-Flávio



More information about the fpc-devel mailing list