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

ForeignVoidType -- foreign void type

Description

The void type. There is one built-in type of this class, void.

Note that there are no foreign objects of this type. It is, however, used as a return type for foreignFunction. Such functions will return null. It may also be used by itself as an argument type to indicate functions that take no arguments.

i1 : void

o1 = void

o1 : ForeignVoidType

Methods that use a foreign void type:

  • ForeignVoidType Nothing
  • getMemory(ForeignVoidType) -- see getMemory -- allocate memory using the garbage collector

Protected objects of class ForeignVoidType:

  • void

For the programmer

The object ForeignVoidType is a type, with ancestor classes ForeignType < Type < MutableHashTable < HashTable < Thing.


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