🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.c++
Article #297

pointers to functions returning typedefs in structures

#297
From: Brian Bershad
Date: Thu, 04 Sep 1986 09:10
32 lines
1112 bytes

The following won't compile:

--------------------------------
typedef char * memory ;

struct S	{
	memory (*A)(), memory (*B)();	// this is a syntax error
};

---
but
---

Struct S	{
	memory (*A)();
	memory (*B)();
};


will.

I am still running 1.0 relE here... is this something that has been
fixed?

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....)


	Brian 
Technical Details
Message-ID: <1193@uw-june>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-crg!nike!ucbcad!ucbvax!hplabs!tektronix!uw-beaver!uw-june!brian

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!lll-crg!nike!ucbcad!ucbvax!hplabs!tektronix!uw-beaver!uw-june!brian
From: brian@uw-june (Brian Bershad)
Newsgroups: net.lang.c++
Subject: pointers to functions returning typedefs in structures
Message-ID: <1193@uw-june>
Date: Thu, 4-Sep-86 05:10:28 EDT
Article-I.D.: uw-june.1193
Posted: Thu Sep  4 05:10:28 1986
Date-Received: Thu, 4-Sep-86 21:42:49 EDT
Reply-To: brian@uw-beaver.UUCP (Brian Bershad)
Organization: U of Washington Computer Science, Seattle
Lines: 32
Keywords: pointers, functions, won't compile