it seem that the keyword overload don't work for cdel declaration
example;
declare function dothis cdecl overload(count as integer ,...) as double
declare function dothis cdecl overload(s as string, count as integer ,...) as double
overload don't work for cdecl
-
- Posts: 507
- Joined: Jan 13, 2009 19:23
Re: overload don't work for cdecl
Edit: comment removed, as it was wrong.
Last edited by caseih on May 15, 2016 22:04, edited 1 time in total.
Re: overload don't work for cdecl
It works after removing the ... vararg parameters; currently overload doesn't work with varargs.
Re: overload don't work for cdecl
I'm curious as to why FB can allow overloading of non-variadic functions but not varadic ones, especially in cases when enough of the parameter types are provided to make a unique signature? What brings about the limitation?
Re: overload don't work for cdecl
I don't think there's a technical reason; in other words, it could be implemented.
-
- Site Admin
- Posts: 6323
- Joined: Jul 05, 2005 17:32
- Location: Manchester, Lancs
Re: overload don't work for cdecl
I can't readily predict the effect it would have on overload resolution..