Logtalk reference manual
Built-in method: before/3

before/3

Description

before(Object, Message, Sender)

User-defined public method for handling before events. This method is declared in the monitoring built-in protocol.

Template and modes

before(?object, ?term, ?object)

Errors

(none)

Examples

before(Object, Message, Sender) :-
    writeq(Object), write('::'), writeq(Message),
    write(' from '), writeq(Sender), nl.