[Pas2js] Possible feature? keep the original JS overload behavior
Mattias Gaertner
nc-gaertnma at netcologne.de
Fri Dec 21 19:58:22 CET 2018
On Fri, 21 Dec 2018 15:19:50 -0300
silvioprog <silvioprog at gmail.com> wrote:
>[...]
> function foo; varargs 2; ...
>
> I never saw a compiler/language limiting the arguments in a variadic
> function, but ... 😀
Yes, what is needed is a procedure modifier or directive to omit
passing default values.
Keep in mind that code should be editable in Delphi IDE too. Maybe
misusing a calling convention?
>[...]
> I probably will change my transpiler copy allowing to omit the default
> parameters in the generated script. 😅
The power of open source. :)
Mattias
More information about the Pas2js
mailing list