requires
assert a load time dependency
Calling Sequence
Parameters
Description
Examples
requires(args::sequence(anything))
args
-
(possibly empty) expression sequence of arguments
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.
requires⁡int
Error, (in requires) load time requirement for int not satisfied
requires⁡crazy_nonexistent_function_or_table
Error, (in requires) load time requirement for crazy_nonexistent_function_or_table not satisfied
See Also
ASSERT
save
savelib
Download Help Document