Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!accelerator.eng.ohio-state.edu!baloo.eng.ohio-state.edu!mills From: mills@baloo.eng.ohio-state.edu (Christopher Mills) Newsgroups: comp.lang.c Subject: A few random type questions. Message-ID: <530@accelerator.eng.ohio-state.edu> Date: 27 Aug 88 13:42:13 GMT Sender: news@accelerator.eng.ohio-state.edu Reply-To: mills@baloo.eng.ohio-state.edu (Christopher Mills) Organization: Ohio State Univ, College of Engineering Lines: 32 #undef LINEEATER My appologies for being in such a curious mode today... OK. Let me see if I've got this straight. There are defaults for both the storage class and type of an identifier, so if I say foo; outside of a block, I'll get a static int foo, right? OK, so what if I write bar() { foo; } obviously, the compiler can't determine if I mean auto int foo, or compute the expression foo (I assume it assumes the latter). This is an ambiguity in the grammar, yes? Also, is there any real reason for the 'auto' keyword? Has anyone ever used it for anything? Last question: is 'register int baz()' legal and if so would it make any difference anywhere. Well, OK, one more. What (if ever) was 'entry' used for? Thanks... -=- _________________________________________________________________________ | Christopher Mills | "If you see someone without a smile, | | mills@baloo.eng.ohio-state.edu | give them mine - I'm not using it." | ====== My thoughts are not my own--I'm posessed by mailer daemons. ======