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