next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

getSymbol -- make a global symbol from a string

Synopsis

Description

This function mimics what the interpreter does when it encounters and parses the name of a global symbol, and can be used when the name of the symbol is not known at the time the code is written.

i1 : x = "aaaa"

o1 = aaaa
i2 : getSymbol x

o2 = aaaa

o2 : Symbol
i3 : dictionary oo

o3 = User#"private dictionary"

o3 : GlobalDictionary
i4 : ooo === getSymbol x

o4 = true

See also