external C functions

lowee (starnet!apple!cpsc.ucalgary.ca!lowee)
Wed, 7 Jul 1993 17:35:51 -0700 (MDT)

I have a few questions about calling external C functions from MetaCard

1. What is the purpose of the "pass" parameter?

2. What would be the best way to handle errors in a smart way. That
is, allow the user to do something based on the return value of a C
function. Would the script which called the function examine the
return value, and then, perhaps pop-up some dialog box? Or should
the C function call some MetaCard stack/function? Or something else?

Using the "error" and "retval" parameters seems to be very limited (if
the retval string is too long, it doesn't fit on the window). These
parameters seem to be for the script programmer's purposes, for
incorrect scripts (like the incorrect number of function parameters).

Thanks,

Earle

lowee@cpsc.ucalgary.ca
The University of Calgary
Pseudo-member of the GraphicsJungle
Honorary-member of the GroupLab