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

ForeignStringType String -- cast a Macaulay2 string to a foreign string

Synopsis

Description

To cast a Macaulay2 string to a foreign object with a string type, give the type followed by the string.

i1 : charstar "Hello, world!"

o1 = Hello, world!

o1 : ForeignObject of type char*

Ways to use this method: