mkhaw@teknowledge-vaxc.ARPA (Mike Khaw) (02/23/89)
overload foo;
float foo(int i) { return (float) i; }
int foo() { return 1; }
main()
{
int (*ifp)() = foo; // point at "int foo()"
(line 9) float (*ffp)(int) = foo; // point at "float foo(int)"
int i = 3;
ifp();
ffp(i);
}
Oasys C++ 1.2 complains about "syntax error" at line 9. Am I doing
something that C++ doesn't permit?
Mike Khaw
--
Internet: mkhaw@teknowledge.com
UUCP: {uunet|sun|ucbvax|decwrl|ames|hplabs}!mkhaw%teknowledge.com
USPS: Teknowledge Inc, 1850 Embarcadero Rd, POB 10119, Palo Alto, CA 94303