Article View: net.lang.c++
Article #314Re: pointers to functions returning typ
From: karl
Date: Sun, 14 Sep 1986 21:49
Date: Sun, 14 Sep 1986 21:49
18 lines
1139 bytes
1139 bytes
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
Technical Details
Message-ID:
<165200002@haddock>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!seismo!think!ima!haddock!karlReferences:
<1193@uw-june>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!think!ima!haddock!karl From: karl@haddock Newsgroups: net.lang.c++ Subject: Re: pointers to functions returning typ Message-ID: <165200002@haddock> Date: Sun, 14-Sep-86 17:49:00 EDT Article-I.D.: haddock.165200002 Posted: Sun Sep 14 17:49:00 1986 Date-Received: Tue, 16-Sep-86 02:07:14 EDT References: <1193@uw-june> Lines: 18 Nf-ID: #R:uw-june:1193:haddock:165200002:000:602 Nf-From: haddock!karl Sep 14 17:49:00 1986