On 13-6-2023 15:38, Rafael Picanço via fpc-pascal wrote:
Thank you Marco, I am elaborating on top of your suggestions.

> The problem is that the logical solution, making it a macro, doesn't
work, as macro definitions don't export through USES clauses.

I think that pre-processor constants with $I would be a valid alternative for using the best solution. For example:

A matter of taste. I would have as less macros as possible. Moreover the typed const doesn't require including additional files at the usage site, so IMHO it is objectively a better solution
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to