next | previous | forward | backward | up | top | index | toc | Macaulay2 website
ForeignFunctions :: foreignStructType

foreignStructType -- construct a foreign struct type



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 :

For the programmer

The object foreignStructType is a method function.