Orlando Llanes wrote:
Is it possible to hook the RunError in GPC? I would definitely be
interested in a feature like that so that custom handlers can be used.
If you mean the RunError procedure, yes (just write your own RunError procedure :-). If you mean the runtime error handling in general, no, not yet (except by modifying the RTS itself).
For the time after GPC 2.1, I'm planning some form of exception handling like Delphi or Java which would make this possible.
Awesome 8o~~~ (<--- Drooling with goofy eyes) I think the C workaround
was not a good work-around anyway, I got weird results using them, for a text file (for example) it worked fine, but (also for example) the pcx encoder didn't properly encode a file despite using a proven algorithm.
I didn't look to closely at the code, so I don't know if there were any problems with it. Another possible problem, if e.g. the code was tested with TP, is the different sizes of data types in GPC, buf I suppose you've thought of that...
I'm trying to eliminate warnings wherever possible without requiring special command-lines :)
Yes, me too.
Frank
-- Frank Heckenbach, frank@fjf.gnu.de http://fjf.gnu.de/ PGP and GPG keys: http://fjf.gnu.de/plan