[fpc-devel] Question about generics / what is checked, and what not -- and why?
Hairy Pixels
genericptr at gmail.com
Sun Oct 19 18:02:01 CEST 2025
On Oct 19, 2025 at 10:50:42 PM, Martin Frb via fpc-devel <
fpc-devel at lists.freepascal.org> wrote:
> Well, yes, it may be unimplemented in the parser... And maybe that is all
> of it.
>
> Maybe historically it would have been a complex task to add. Yet,
> currently it would seem to be that the parser just needs to skip any amount
> of "dot identifier"?
>
Ideally the parser catches syntax errors before specialization. FPC has an
undefined type so upon encountering this you would be an "undefined sub
tree expression parser" which could handle all possible expressions which
originated from the identifier.
FPC just stores the raw tokens so all the compiler really needs to know is
where the start and end of the generic type/proc are.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20251019/14dd8bb5/attachment.htm>
More information about the fpc-devel
mailing list