Am 21.02.2018 04:09 schrieb "Ryan Joseph" <r...@thealchemistguild.com>:

Is this a missing feature or do you need to enable it or something?


There is none.

The compiler does not know the type of the parameter, because overload
selection occurs only after all parameters have been parsed. So during
parsing the compiler would not know from which enum type to select the enum
value. Not to mention unsolvable overloads if there would be two enums with
the same value and the same name of the routine.

This also would have the possibility to lead to confusion for the user
(e.g. same case as above or add a variable with the same name into the
mix).

Regards,
Sven
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to