Re:Why I use Object Pascal
by vram22 on Tuesday October 17, 2017 @03:47PM
(#15494241)
I haven't actually tried that, but my guess (even without checking that link) is that you are right, because:
1) C and Pascal are not too different as languages go (in some respects, both being sort of Algol-family languages), and:
2) I remember from earlier Windows API/SDK days that many Windows APIs had signatures/prototypes that went something like "long far pascal", and remember reading in computer magazines and source code listings about Pascal vs. C calling conventions (it may have been something like the order in which function parameters are pushed onto the stack before the call is executed, who cleans up the stack - caller or callee, etc.).
1) C and Pascal are not too different as languages go (in some respects, both being sort of Algol-family languages), and:
2) I remember from earlier Windows API/SDK days that many Windows APIs had signatures/prototypes that went something like "long far pascal", and remember reading in computer magazines and source code listings about Pascal vs. C calling conventions (it may have been something like the order in which function parameters are pushed onto the stack before the call is executed, who cleans up the stack - caller or callee, etc.).
https://en.wikipedia.org/wiki/X86_calling_conventions
e.g. see the cdecl vs pascal conventions.