Code: Select all
#ifset VERBSTUBS
before
{
object DoPush
{
if location = self.between
return Perform(&DoOpen, self)
else
return Perform(&DoClose, self)
}
object DoPull
{
if location = self.between
return Perform(&DoClose, self)
else
return Perform(&DoOpen, self)
}
}
#endif
Anyhow, I thought I'd share that. I haven't thought of ways to simplify/represent it further, but people are welcome to try.