TIP: Click on subject to list as thread! ANSI
echo: c_echo
to: Neil Heller
from: Jasen Betts
date: 2003-08-07 18:08:54
subject: Bob`s questi

Hi Neil.

05-Aug-03 09:05:00, Neil Heller wrote to Jasen Betts


 JB>> Given

 JB>> typedef struct moo { int foo; char bar; } moo;

 NH> My program is:

 NH> struct moo { int  intvar; char charvar; }

 NH> typedef moo moo;

should be
   typedef struct moo moo;

 NH> test.c(6) : error C2282: 'moo' is followed by 'moo' (missing ','?)

 NH> What are they trying to say?

that they can't understand your code.

structs (and unions) have a separate namespace to typedefs until you
typedef the struct....

 -=> Bye <=-

---
* Origin: Success is a journey, not a destination. (3:640/1042)
SEEN-BY: 633/267 270
@PATH: 640/1042 531 954 774/605 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.