Macaulay2 » Documentation
Packages » ForeignFunctions » ForeignType » ForeignStructType » foreignStructType
next | previous | forward | backward | up | index | toc

foreignStructType -- construct a foreign struct type

Description

To construct a foreign struct type, specify a name and a list of the members. Each member should be an Option of the form memberName => memberType, where memberName is a String and memberType is a ForeignType.

i1 : foreignStructType("mystruct", {"foo" => int, "bar" => double})

o1 = mystruct

o1 : ForeignStructType

Ways to use foreignStructType:

  • foreignStructType(String,Option)
  • foreignStructType(String,VisibleList)

For the programmer

The object foreignStructType is a method function.


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