FFI Definition
Marcin 'Qrczak' Kowalczyk
qrczak at knm.org.pl
Sun May 6 12:51:03 EDT 2001
6 May 2001 15:50:16 GMT, Marcin 'Qrczak' Kowalczyk <qrczak at knm.org.pl> pisze:
> Export dynamic introduces a name, export static exports an existing
> name. For that reason putting this distinction in extent seems strange
> for me.
Moreover, export dynamic and import dynamic don't have fname or cid.
foreign import dynamic is a shortcut for importing an automatically
generated C function which could be easily written by hand. It fits
well into regular imports with a single distinguished magical extent.
All parameters are in the type, so it can be called "dynamic" or
"curry" or "apply" or whatever, perhaps with special characters to
distinguish the name from plain functions.
foreign export dynamic is a shortcut for importing an automatically
generated nontrivial C function, with argument type not conforming to
regular imports, which could not be written by hand. So it's actually
an *import*! It could be spelled as import with a magical name - again
all parameters are in the type.
--
__("< Marcin Kowalczyk * qrczak at knm.org.pl http://qrczak.ids.net.pl/
\__/
^^ SYGNATURA ZASTÊPCZA
QRCZAK
More information about the FFI
mailing list