[fpc-pascal] Constants in generics
Sven Barth
pascaldragon at googlemail.com
Wed Nov 28 23:15:14 CET 2018
Am 27.11.2018 um 11:35 schrieb Sven Barth:
> Am Di., 27. Nov. 2018, 08:18 hat Ryan Joseph
> <ryan at thealchemistguild.com <mailto:ryan at thealchemistguild.com>>
> geschrieben:
>
>
>
> > On Nov 27, 2018, at 4:59 AM, Sven Barth via fpc-pascal
> <fpc-pascal at lists.freepascal.org
> <mailto:fpc-pascal at lists.freepascal.org>> wrote:
> >
> > Best check again once you've done the switch to tconstsym for
> constants. :)
> >
>
> I made most of the changes you mentioned so please look. Including
> the constsyms didn’t break anything and helped to clean up the
> code. I would have done that from the start but I wasn’t sure you
> wanted me mixing in new types.
>
>
> Good, thank you. Hopefully I'll find the time this evening to look at
> your changes again. :)
Looks better.
The next thing to nuke is the tgenericparamdef. The parameters stored in
tdef.genericparas are the parameter symbols, so there should be no need
for defs. If necessary some of the code in pgenutil (and related
functions) will need to be changed from handling a list of defs to a
list of syms.
Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20181128/c6e919a9/attachment.html>
More information about the fpc-pascal
mailing list