[erlang-bugs] io device() type incomplete
Steve Vinoski
vinoski@REDACTED
Tue Mar 25 02:45:31 CET 2014
On Mon, Mar 24, 2014 at 9:40 PM, Steve Vinoski <vinoski@REDACTED> wrote:
> The io man page defines the device() type as follows:
>
> device() = atom() | pid()
>
> An IO device. Either standard_io, standard_error, a registered
> name, or a pid handling IO protocols (returned from file:open/2).
>
> But this is incomplete, since file:open/2 can also return an instance of a
> file_descriptor record.
>
Also meant to add that there are functions in the io module that take
device() type parameters but do not handle file_descriptor records.
--steve
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140324/4c5f0605/attachment.htm>
More information about the erlang-bugs
mailing list