requires - Maple Programming Help

Home : Support : Online Help : System : Libraries and Packages : Deprecated Packages and Commands : Deprecated commands : requires(deprecated)

requires

 Calling Sequence requires(args::sequence(anything))

Parameters

 args - (possibly empty) expression sequence of arguments

Description

 Important: The requires command has been deprecated.
 • The procedure requires is used to assert a load time dependency in a Maple library source file.
 • If any of the arguments passed to requires are not of type procedure or of type table, then an error is signalled. Otherwise, NULL is returned.
 • The purpose of this routine is to force an error to be generated if an attempt is made to load a file that depends, at load time, on some library routines that are not yet loaded into the repository.

Examples

Important: The requires command has been deprecated.

 > $\mathrm{requires}\left(\mathrm{int}\right)$
 > $\mathrm{requires}\left(\mathrm{crazy_nonexistent_function_or_table}\right)$