Logtalk reference manual
Built-in method: call/N

call/N

Description

call(Closure, Arg)
call(Closure, Arg1, Arg2)
...

Calls a goal constructed by appending additional arguments to a closure. The upper limit for N depends on the upper limit for the arity of a compound term of the back-end Prolog compiler.

Template and modes

call(+callable, ?term)
call(+callable, ?term, ?term)
...

Errors

Closure is a variable:
instantiation_error
Closure is neither a variable nor a callable term:
type_error(callable, Closure)

Examples

Call a goal in this constructed by appending addtional arguments to a closure:
call(Closure, Arg1, Arg2, ...)
Call a goal in self constructed by appending addtional arguments to a closure:
::call(Closure, Arg1, Arg2, ...)
Call a goal in an object constructed by appending addtional arguments to a closure:
Object::call(Closure, Arg1, Arg2, ...)