question_hook(Question, Kind, Component, Check, Answer)
User-defined hook method for intercepting asking a question, declared in the logtalk
built-in object as a public, multifile, and dynamic predicate. This hook method is automatically called by the ask_question/5
method. When the call succeeds, the ask_question/5
method assumes that the question have been successfully asked and replied.
question_hook(+nonvar, +nonvar, +atom, +callable, -term)
question_hook(*, *, *, 1, *)
(none)
:- multifile(logtalk::question_hook/5). :- dynamic(logtalk::question_hook/5). % use a pre-defined answer instead of asking the user logtalk::question_hook(upper_limit, question, my_app, float, 3.7).