5.1.4 Symbol Manipulation

Most of the symbol manipulation miscops are compiled in-line rather than actual calls.

Get-Value (Symbol)

returns the value of Symbol (which must be a symbol). An error is signalled if Symbol is unbound.

Set-Value (Symbol Value)

sets the value cell of the symbol Symbol to Value. Value is returned.

Get-Definition (Symbol)

returns the definition of the symbol Symbol. If Symbol is undefined, an error is signalled.

Set-Definition (Symbol Definition)

sets the definition of the symbol Symbol to Definition. Definition is returned.

Get-Plist (Symbol)

returns the property list of the symbol Symbol.

Set-Plist (Symbol Plist)

sets the property list of the symbol Symbol to Plist. Plist is returned.

Get-Pname (Symbol)

returns the print name of the symbol Symbol.

Get-Package (Symbol)

returns the package cell of the symbol Symbol.

Set-Package (Symbol Package)

sets the package cell of the symbol Symbol to Package. Package is returned.

Boundp (Symbol)

sets the eq condition code bit to 1 if the symbol Symbol is bound; sets it to 0 otherwise.

FBoundp (Symbol)

sets the eq condition code bit to 1 if the symbol Symbol is defined; sets it to 0 otherwise.

Get (Symbol Indicator Default)

searches the property list of Symbol for Indicator and returns the associated value. If Indicator is not found, Default is returned.

Put (Symbol Indicator Value)

searches the property list of Symbol for Indicator and replaces the associated value with Value. If Indicator is not found, the Indicator Value pair are consed onto the front of the property list.