Node:Property Primitives, Next:, Up:Object Properties



24.2.1 Low Level Property Implementation.

primitive-make-property not_found_proc Scheme Procedure
scm_primitive_make_property (not_found_proc) C Function
Create a property token that can be used with primitive-property-ref and primitive-property-set!. See primitive-property-ref for the significance of not_found_proc.

primitive-property-ref prop obj Scheme Procedure
scm_primitive_property_ref (prop, obj) C Function
Return the property prop of obj. When no value has yet been associated with prop and obj, call not-found-proc instead (see primitive-make-property) and use its return value. That value is also associated with obj via primitive-property-set!. When not-found-proc is #f, use #f as the default value of prop.

primitive-property-set! prop obj val Scheme Procedure
scm_primitive_property_set_x (prop, obj, val) C Function
Associate code with prop and obj.

primitive-property-del! prop obj Scheme Procedure
scm_primitive_property_del_x (prop, obj) C Function
Remove any value associated with prop and obj.