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

foreignPointerArrayType -- construct a foreign pointer array type

Synopsis

Description

To construct a foreign array pointer type, specify a name and the type of the elements of each array. This type must necessarily be some kind of pointer type.

i1 : foreignPointerArrayType("myPointerArray", 3 * int)

o1 = myPointerArray

o1 : ForeignPointerArrayType

If the name is omitted, then a default one is chosen by taking the name of the type of the elements and appending a star.

i2 : foreignPointerArrayType(3 * int)

o2 = int32[3]*

o2 : ForeignPointerArrayType

Ways to use foreignPointerArrayType :

For the programmer

The object foreignPointerArrayType is a method function.