[fpc-devel]fpgtk problem

KJK::Hyperion noog at libero.it
Thu Apr 3 21:45:06 CEST 2003

At 07.18 03/04/2003, you wrote:
>>what? it's the simplest thing in the world. You loop through all the 
>>elements of the TVarRec array, last to first, and push them on the stack, 
>>then you push the formal arguments. Sure, it generates a lot of code, but 
>>it's not that hard. I mean, variable arrays store the length and TVarRec 
>>stores the type of the data, is there something I don't get?
>How about data conversions like shortstring, floats?

The Push() function in my pseudo-code is supposed to take care of that. And 
Borland null-terminates short strings for a reason

>And also there is a difference between pascal and C if the value or the 
>address where the value is stored is pushed.

Are you sure? I think there doesn't need to be any difference. Again, I 
think the Borland compiler already takes this in account

More information about the fpc-devel mailing list