![]() | ![]() | ![]() | print-slot-for-saving/sending | ![]() |
|
| instance slot-name stream | [Generic Function] |
Purpose
Write the printed representation of slot slot-name in
object to stream when saving or sending.
Method signatures
(instance standard-object)
slot-name stream
|
(instance standard-unit-instance)
(slot-name (eql gbbopen::%%space-instances%%)
stream
|
Package :gbbopen-tools
Module :gbbopen-tools (the unit-instance method is added by
:gbbopen-core)
Arguments and values
| instance | A standard-object instance
| |
| slot-name | A non-nil, non-keyword symbol
| |
| stream | A stream |
Errors
A call to print-slot-for-saving/sending was made outside
the dynamic scope of a with-saving/sending-block.
See also
*print-object-for-sending*
omitted-slots-for-saving/sending
print-object-for-saving/sending
print-slot-for-saving/sending
save-blackboard-repository
Example
Write the binary value of slot song in unit instances of
bird as a Base64 portable string (see the companion decoding
example):
(defmethod print-slot-for-saving/sending ((bird bird) (slot-name (eql 'song)) stream)
(print-object-for-saving/sending (base64-encode (song-of bird)) stream))
The GBBopen Project
![]() | ![]() | ![]() | print-slot-for-saving/sending | ![]() |