Macaulay2 » Documentation
Packages » ForeignFunctions :: address
next | previous | forward | backward | up | index | toc

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 = 0x565a56f3d120

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 = 0x7a961e8bcb60

o2 : Pointer

Ways to use address :

For the programmer

The object address is a method function.