Next: , Up: built-in symbols   [Contents][Index]


6.8.1 The <symbol> object–type

Core Type: <symbol>
Parent Type: <top>

Type of symbol values (including gensyms).

Constructor on <symbol>: <symbol> type-constructor {S <string>}

The constructor is string->symbol.

Type predicate on <symbol>: <boolean> type-predicate obj

The type predicate is symbol?. Return #t if obj is a symbol object; otherwise return #f.

Hash function on <symbol>: <non-negative-fixnum> hash-function sym

The hash function is symbol-hash.

Methods

Method on <symbol>: <string> string this

Apply symbol->string to the instance.

Method on <symbol>: <boolean> bound? this

Apply symbol-bound? to the instance.

Method on <symbol>: <top> value this
Method on <symbol>: <void> value this new-value

When called with no arguments: apply symbol-value to the instance to retrieve the current value in the value slot. When called with one argument: apply set-symbol-value! to the instance to store a new value value slot.

Method on <symbol>: <boolean> member? this {es <enum-set>}

Apply enum-set-member? to the arguments and return its return value.

Methods: comparison

Method on <symbol>: <boolean> = this {sym0 <symbol>} {sym <symbol>} …

Apply symbol=? to the arguments and return its return value.

Method on <symbol>: <boolean> != this {sym0 <symbol>} {sym <symbol>} …

Apply symbol!=? to the arguments and return its return value.

Method on <symbol>: <boolean> < this {sym0 <symbol>} {sym <symbol>} …

Apply symbol<? to the arguments and return its return value.

Method on <symbol>: <boolean> > this {sym0 <symbol>} {sym <symbol>} …

Apply symbol>? to the arguments and return its return value.

Method on <symbol>: <boolean> <= this {sym0 <symbol>} {sym <symbol>} …

Apply symbol<=? to the arguments and return its return value.

Method on <symbol>: <boolean> >= this {sym0 <symbol>} {sym <symbol>} …

Apply symbol>=? to the arguments and return its return value.

Method on <symbol>: <symbol> min this {sym <symbol>} …

Apply symbol-min to the arguments and return its return value.

Method on <symbol>: <symbol> max this {sym <symbol>} …

Apply symbol-max to the arguments and return its return value.

Methods: property lists

Method on <symbol>: () putprop this (key <symbol>) value

Apply putprop to the instance.

Method on <symbol>: <top> getprop this (key <symbol>)

Apply getprop to the instance.

Method on <symbol>: () remprop this (key <symbol>)

Apply remprop to the instance.

Method on <symbol>: <list> property-list this

Apply property-list to the instance.


Next: , Up: built-in symbols   [Contents][Index]