Next: , Previous: , Up: syslib symbols   [Index]


12.2.6 Values associated to symbols

Unsafe Operation: $symbol-value sym
Unsafe Operation: $set-symbol-value! sym val

The value field has multiple purposes:

Notice that this field is initialised to the unbound object, so we can test the value of a newly created symbols with:

($unbound-object? ($symbol-value? sym))
Unsafe Operation: $unbound-object? obj

Return #t if obj is the special unbound machine word value, otherwise return #f.

Unsafe Operation: $symbol-proc sym
Unsafe Operation: $set-symbol-proc! sym proc

Accessor and mutator for the field proc.

Unsafe Operation: $set-symbol-value/proc! sym val

Set both the fields value and proc of sym to val.

Unsafe Operation: $init-symbol-function! sym proc

Still to be documented.