Newsgroups: comp.lang.c
Path: utzoo!henry
From: henry@utzoo.uucp (Henry Spencer)
Subject: Re: A few random type questions.
Message-ID: <1988Aug28.030747.19105@utzoo.uucp>
Organization: U of Toronto Zoology
References: <530@accelerator.eng.ohio-state.edu>
Date: Sun, 28 Aug 88 03:07:47 GMT

In article <530@accelerator.eng.ohio-state.edu> mills@baloo.eng.ohio-state.edu (Christopher Mills) writes:
>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?

Actually, in an X3J11-conforming compiler, you get an error message.
You can't default both type and storage class in X3J11 C.

>Also, is there any real reason for the 'auto' keyword?  Has anyone ever
>used it for anything?

It's not useful, but there is probably old code somewhere that declares
some local int variables with "auto i;" instead of "int i;".  Sigh.

>Last question: is 'register int baz()' legal and if so would it make any
>difference anywhere.

It is explicitly illegal in X3J11 C.

>Well, OK, one more.  What (if ever) was 'entry' used for?

Nothing.  It's no longer part of the language.
-- 
Intel CPUs are not defective,  |     Henry Spencer at U of Toronto Zoology
they just act that way.        | uunet!attcan!utzoo!henry henry@zoo.toronto.edu
