I've got a problem with GPC giving the error:
error: function result must not be a procedural type
Is there a reason for this error? The manual states:
"In Extended Pascal, function result type can be every assignable type. Of course,there are no type restrictions in GNU Pascal as well."
Since GPC supports as an extension procedural and functional types and assignments involving those types, it would seem to be covered under "every assignable type" and "no type restrictions in GNU Pascal".
Since Posix has such things as signal:
typedef void (*sig_t) (int);
sig_t signal(int sig, sig_t func);
to make a Pascal interface to this I need to return a procedural type from a function.
Is this likely to work in the future or is there some serious problem with this?
Thanks, Peter.