type/filedesc
check for an object of type filedesc
Calling Sequence
Parameters
Description
Examples
type(e, 'filedesc')
e
-
any expression
The call type(e, 'filedesc') checks whether the expression e may be a valid file descriptor. File descriptors are expressions of types integer, string, or symbol.
Note that this type check is a surface type check only. It does not verify that the expression e actually refers to an open file.
type⁡book,filedesc
true
type⁡12,filedesc
type⁡12⁢x,filedesc
false
type⁡12*x,filedesc
type⁡book1,filedesc
See Also
file
iolib
type
type/integer
type/string
type/symbol
Download Help Document