[net.lang.c++] pointers to functions returning typ

karl@haddock (09/15/86)

brian@uw-june () writes:
>The following won't compile:
>    typedef char * memory ;
>    struct S {
>        memory (*A)(), memory (*B)();   // this is a syntax error
>    };

It shouldn't compile; it really *is* a syntax error.

>The headache is because the former compiles using /bin/cc and
>I am trying to integrate old C code with some new C++ stuff
>(this is \supposed/ to work....)

When I try it (oldC, SVR2 vax) I get 6 errors -- I think your /bin/cc is
broken.  That line should be written "memory (*A)(), (*B)();".

Karl W. Z. Heuer (ima!haddock!karl; karl@haddock.isc.com), The Walking Lint