How the final scripting language library is used varies depending on the language. Much of the functionality is common across every scripting language, so it will be described in general terms first.
Later sections describe special instructions or differences for each of the scripting languages.
Perl will be used for examples, but it should be clear what is going on. All code examples are contained in shaded tables, with the particular language used shown at the left of the table. A simple function that takes a double and returns an int. Invoked functions can take pointers as arguments, and they can return pointers. Even if you do use the wrappers, you can still call invoke directly.