[fpc-pascal]Calling intr from Windows
Andreas K. Foerster
Andreas at AKFoerster.de
Sat Mar 16 14:43:55 CET 2002
On Sat, Mar 16, 2002 at 10:10:48AM +0100, Jonas Maebe wrote:
> > can anybody talk about an API here? Anyway, I don't think we should
> > use any "Win32 API" function, that isn't available on some of current
> > target platforms and won't be supported on future ones either, in our
> > RTL.
>
> I agree, but I also think we shouldn't have any function in the RTL that
> can silently fail. Either we remove the intr and msdos procedures from the
> interface of all Dos.pp units (except of that for the go32v2 target), or
> we put a call to runerror in them (with a unique value that gets added to
> the docs with the description "unsupported function on the current
> platform").
That would disallow to compile programms even when the unsupported
function isn't essential.
I would vote for that:
{$Warning function not implemented for this platform}
This gives a warning, but doesn't nessesarily break compilation.
> Striving to a common interface for all platforms is a nice goal, but if it
> can't be done, you should not silently fail imho, since that kind of bugs
> are the hardest to track. The same can be said for mark/release, which
> also do nothing currently.
agree
--
Tschuess
Andreas
More information about the fpc-pascal
mailing list