[fpc-devel] Implicit function specialization precedence

Ryan Joseph genericptr at gmail.com
Sat Apr 10 00:43:24 CEST 2021



> On Apr 9, 2021, at 4:31 PM, Sven Barth via fpc-devel <fpc-devel at lists.freepascal.org> wrote:
> 
> You mean what you did for is_array_literal? A pure array constructor can be found with is_array_constructor, though it might be better to use is_open_array, cause someone might pass an open array parameter to a generic function (those will be unnamed as well).

Maybe the email didn't go through? How to identify this "array of const constructor" type. I want to reject these for implicit specialization but I can't identity them.

 DoThis([
   1,
   'string',
   'c',
   TObject.Create
 ])
Regards,
	Ryan Joseph



More information about the fpc-devel mailing list