[fpc-pascal] += property bug?
Martok
listbox at martoks-place.de
Tue Aug 13 14:44:28 CEST 2019
Am 12.08.2019 um 11:31 schrieb Sven Barth via fpc-pascal:
> The code you linked converts "a += b" to "tmp := @a; tmp^ := tmp^ + b", so
> except for using a temp to avoid duplicate calculation of "a" in how far is this
> not the long form?
No, I meant it doesn't re-parse as its long form, which is why it has some
limitations. In this case for example handle_propertysym does not know it is
actually seeing an assignment.
I don't think the compiler can do this? Macros are expanded on the scanner
level, token stream injection is not a thing in FPC, AFAICS?
--
Regards,
Martok
More information about the fpc-pascal
mailing list