Opened 14 years ago

Closed 14 years ago

Last modified 13 years ago

#225 closed enhancement (fixed)

Add a predicate for port open/closed status (slot 8)

Reported by: sjamaan Owned by: Felix
Priority: not urgent at all Milestone:
Component: core libraries Version: 4.6.0
Keywords: ports, closed, status Cc:
Estimated difficulty:

Description

Currently there's no way to check if a port is open or closed besides from performing an operation on it and checking whether it caused an exception or call ##sys#slot on it directly.

It would be a good idea to add a port-closed? predicate. Here's a patch.

Attachments (1)

port-closed.patch (1009 bytes) - added by sjamaan 14 years ago.
Implementation of port-closed?

Download all attachments as: .zip

Change History (3)

Changed 14 years ago by sjamaan

Attachment: port-closed.patch added

Implementation of port-closed?

comment:1 Changed 14 years ago by felix winkelmann

Resolution: fixed
Status: newclosed

Applied in 6eda778123408d57e78e6e87935dd7c588df724c (experimental).

Thanks, sjaaman.

comment:2 Changed 13 years ago by felix winkelmann

Milestone: 4.6.0

Milestone 4.6.0 deleted

Note: See TracTickets for help on using tickets.