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

foreignPointerArrayType -- construct a foreign pointer array type

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:

  • foreignPointerArrayType(ForeignType)
  • foreignPointerArrayType(String,ForeignType)

For the programmer

The object foreignPointerArrayType is a method function.


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