Darwin Help

Back to Index

symbol

Function symbol


Calling Sequence  symbol(s)
Parameters
NameTypeDescription

s a string 
Return Type  symbol
Synopsis Symbol transforms a string into a symbol (a Darwin variable that can hold values). This is typically needed when a name is formed by concatenation or as a result of an sprintf() command. The symbol obtained always refers to a global symbol, never to a local or to a parameter, when computed inside a procedure.
Examples
> symbol(a.b);
ab
> type(symbol(a.b));
symbol
> type(a.b);
string
See also names,   string