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

address -- pointer to type or object

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

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

o2 : Pointer

Ways to use address:

  • address(ForeignObject)
  • address(ForeignType)
  • address(Nothing) (missing documentation)

For the programmer

The object address is a method function.


The source of this document is in ForeignFunctions.m2:854:0.