Handbook
Glossary
library
Vocabulary
alien.libraries
Inputs
None
Outputs
None
Word description
Looks up a library by its logical name. The library object is a hashtable with the following keys:
•
name
- the full path of the C library binary
•
abi
- the ABI used by the library, either
cdecl
or
stdcall
•
dll
- an instance of the
dll
class; only set if the library is loaded
Definition
USING:
alien
strings
;
IN:
alien.libraries
TUPLE:
library
{
path
string
initial:
""
}
dll dlerror
{
abi
abi
initial:
cdecl
}
;
Methods
USING:
accessors
alien.libraries
destructors
kernel
;
M:
library
dispose
dll>>
[
dispose
]
when*
;
USING:
accessors
alien.libraries
kernel
;
M:
library
library-dll
dup
[
dll>>
]
when
;