value x
Convert the given foreign object to the corresponding Macaulay2 thing. The type of the output is determined by the type of the foreign object. Foreign integer objects are converted to ZZ objects.
|
|
Foreign real objects are converted to RR objects.
|
|
Foreign pointer objects are converted to Pointer objects.
|
|
Foreign string objects are converted to strings.
|
|
Foreign array objects are converted to lists.
|
|
Foreign struct and union objects are converted to hash tables.
|
|
|
Note that this function is also used by net(ForeignObject) for representing foreign objects.