quote

quote s -- provides the symbol s, even if s currently has a value.

     i1 = num
     
     o1 = num
     
     o1 : Symbol
     
     i2 = num = 5
     
     o2 = 5
     
     i3 = num
     
     o3 = 5
     
     i4 = num = quote num
     
     o4 = num
     
     o4 : Symbol
     
     i5 = num
     
     o5 = num
     
     o5 : Symbol
     

If s is an operator, then the corresponding symbol is provided. This symbol is used by the interpreter in constructing keys for methods associated to the symbol.

     i6 = quote +
     
     o6 = +
     
     o6 : Symbol
     
     x + y -- a binary operator used for sums and union.
     

See also local and global.

Go to main index.

Go to concepts index.