> 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
You can't use a function to push the values, because returning from the function will cleanup the stack. >>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 Sorry i don't understand what you want to make clear here. There is no Borland compiler used at all. _______________________________________________ fpc-devel maillist - [EMAIL PROTECTED] http://lists.freepascal.org/mailman/listinfo/fpc-devel
