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

address -- pointer to type or object

Synopsis

Description

If x is a foreign type, then this returns the address to the ffi_type struct used by libffi to identify the type.

i1 : address int

o1 = 0x556df35f87c0

o1 : Pointer

If x is a foreign object, then this returns the address to the object. It behaves like the & "address-of" operator in C.

i2 : address int 5

o2 = 0x7fe9df664b60

o2 : Pointer

Ways to use address :

For the programmer

The object address is a method function.