Next: , Previous: , Up: iklib io   [Index]


6.44.7 Port property lists

Port property work like symbol property lists; they are a simple way to tag I/O ports with values.

Function: port-putprop port key value

Add a new property key with value to the property list of port. If key is already set: the old entry is mutated to reference value. key must be a symbol.

Function: port-getprop port key

Return the value of the property key in the property list of port; if key is not set return #f. key must be a symbol.

Function: port-remprop port key

Remove the property key from the property list of port. key must be a symbol.

Function: port-property-list port

Return a new association list representing the property list of port.