Displaying 1 result from an estimated 1 matches for "arg4foo".
2002 May 25
2
Function objects as arguments of a function
...ment of another function as follows:
// function used as an argument
void foo(int x)
{
...
}
// function using a function as an argument
void bar(void (*func)(int ), int arg1, int arg2)
{
....
}
// The function 'bar' will be called as follows
int main()
{
....
bar(foo, arg4foo, other_arg);
...
}
In R, can function objects be used as arguments of
a function?
Thanks in advance from Japan
#####################################
# Tsumiyama Isao (Mitsubishi Pharma Corp.)
# Tel:047-471-7721
# PHS:070-5659-0544
# e-mail:tsumi at leo.auric.ne.jp
# tsumiyam...