next | previous | forward | backward | up | top | index | toc | Macaulay2 website
ForeignFunctions :: SharedLibrary

SharedLibrary -- a shared library

Description

A shared library that could be used to load foreign functions. Each shared library object consists of a pointer to a handle for the library and a string that is used by net(SharedLibrary).

i1 : mpfr = openSharedLibrary "mpfr"

o1 = mpfr

o1 : SharedLibrary
i2 : peek mpfr

o2 = SharedLibrary{0x7eff93d7e490, mpfr}

Functions and methods returning a shared library :

Methods that use a shared library :

For the programmer

The object SharedLibrary is a self initializing type, with ancestor classes BasicList < Thing.