trinity
trinity copied to clipboard
HANDLE-SWITCH? always refers to the toggle switches
The HANDLE-SWITCH?
routine always refers to the toggle switch, even when called from BUTTON-F
:
>DESTROY BUTTON
These military toggle switches are built to resist such abuse.
<ROUTINE HANDLE-SWITCH? ()
<COND (<THIS-PRSI?>
<RFALSE>)
(<VERB? TAKE LOOSEN UNSCREW UNSCREW-FROM>
<FIRMLY-ATTACHED ,PRSO ,WALLS>
<RTRUE>)
(<VERB? MUNG KICK CUT RIP SHAKE>
<TELL "These military " D ,TSWITCH
"es are built to resist such abuse." CR>
<RTRUE>)
(T
<RFALSE>)>>
Perhaps add an optional parameter to specify the object to print? Though it would either have to take a string or learn how to write the plural of the object. So probably a string.