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

ForeignType Pointer -- dereference a pointer

Synopsis

Description

Dereference the given pointer into the corresponding foreign object, much like the dereference operator (*) in C.

i1 : x = int 5

o1 = 5

o1 : ForeignObject of type int32
i2 : ptr = address x

o2 = 0x7b21e1850be0

o2 : Pointer
i3 : int ptr

o3 = 5

o3 : ForeignObject of type int32

Ways to use this method: