parameter/2
parameter(Number, Term)Used only in parametric objects, this method returns parameter values by using the parameter position in the entity identifier. See also
this/1
.
parameter(+integer, ?term)
- Number is a variable:
instantiation_error
- Number is neither a variable nor an integer value:
type_error(integer, Number)
- Object identifier is not a compound term:
type_error(compound, Object)
- Number is a negative integer value:
domain_error(not_less_than_zero, Number)
:- object(box(_Colour)). ... colour(Colour) :- parameter(1, Colour). ...
Previous | Next | Table of Contents | Bibliography | Glossary
Last updated on: August 6, 2002