SWI-Prolog -- is_stream/1

Did you know ... Search Documentation:
SWI-Prolog owl logo Predicate is_stream/1
Tags are associated to your profile if you are logged in
Tags:
LogicalCaptain said (2021年06月08日T16:44:40):0 upvotes 0 0 downvotes
Picture of user LogicalCaptain.

These all succeed:

is_stream(user_input).
is_stream(user_output).
is_stream(user_error).
is_stream(current_input).
is_stream(current_output).

As does this:

?- open("/etc/motd",read,Stream),
 is_stream(Stream),
 atomic(Stream),
 blob(Stream,T),
 close(Stream),
 blob(Stream,TT).
Stream = <stream>(0x29db6b0),
T = TT, TT = stream.
login to add a new annotation post.

AltStyle によって変換されたページ (->オリジナル) /