Peter N Lewis wrote:
I think so. We have some problems with function pointers. Another thread a while ago pointed me to them, but they seem difficult to fix, and I haven't done this yet. (In that thread, AFAIR, Waldek fixed the problem at hand, and also noted the deeper problems.) So this should happen sooner or later (I hope sooner ;-).
This issue I have with function pointers is two fold:
Not being able to cast them to/from an arbitrary pointer (which makes storing them or passing them through a confined interface where procedure types are not appropriate challenging), and not being able to case one procedural variable to another one, even if they are reasonably compatible.
Yes, I think both should work (with casting probably even for all function pointers then, since it may be difficult to define what reasonably compatible, and anyway, type-casts are meant to override typing rules). I hope we can fix this soon. Frank -- Frank Heckenbach, frank@g-n-u.de, http://fjf.gnu.de/, 7977168E GPC To-Do list, latest features, fixed bugs: http://www.gnu-pascal.de/todo.html GPC download signing key: ACB3 79B2 7EB2 B7A7 EFDE D101 CD02 4C9D 0FE0 E5E8