Call back is indirection to the procedure (address), parameters must be passed separately (C/C++). It can be
function callback(a){
}
function b( ...., callback, data) {
}
The caller (b in the above case) will do the business with 'callback'. What to pass as parameter is upto the caller, it can pass internal value or 'data' as parameter.
If not correct, let me know if I am missing anything.
Call back is indirection to the procedure (address), parameters must be passed separately (C/C++). It can be
ReplyDeletefunction callback(a){
}
function b( ...., callback, data)
{
}
The caller (b in the above case) will do the business with 'callback'. What to pass as parameter is upto the caller, it can pass internal value or 'data' as parameter.
If not correct, let me know if I am missing anything.