Path: utzoo!attcan!uunet!fernwood!apple!usc!zaphod.mps.ohio-state.edu!uwm.edu!psuvax1!news From: melling@cs.psu.edu (Michael D Mellinger) Newsgroups: comp.lang.c++ Subject: Cardinal numbers or unsigned int.. Message-ID: Date: 25 May 90 11:10:57 GMT Sender: news@cs.psu.edu (Usenet) Distribution: comp Organization: Penn State University Computer Science Lines: 33 I am learning X Window and have just found out that MIT borrowed the Cardinal type from Pascal. Now in order to avoid all kinds of warning messages, I have to declare my variables like argc to be either of type Cardinal, unsigned int, or u_int(the way I used to declare non-negative numbers). This might seem like a minor detail, but three different ways to say something is a too much! Which style is the more acceptable? Imagine teaching someone C or C++ and having to explain to them why there are three names for numbers that are non-negative. Maybe you could tell them that C (C++) is a language where everyone does their own thing. -Mike ------------------------- The problem illustrated ------------------------- main(u_int argc, char* argv[]) { // XtAppInitialize() expects argc to be a Cardinal number . . . toplevel = XtAppInitialize(&app_con, "Xhw", NULL, ZERO, &argc, argv, fallback_resources, NULL, ZERO); . . . }