filedesc - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

Online Help

All Products    Maple    MapleSim


type/filedesc

check for an object of type filedesc

 

Calling Sequence

Parameters

Description

Examples

Calling Sequence

type(e, 'filedesc')

Parameters

e

-

any expression

Description

• 

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.

Examples

typebook,filedesc

true

(1)

type12,filedesc

true

(2)

type12x,filedesc

false

(3)

type12*x,filedesc

true

(4)

typebook1,filedesc

false

(5)

See Also

file

iolib

type

type/integer

type/string

type/symbol