Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!decwrl!sun!gnu From: gnu@sun.UUCP (John Gilmore) Newsgroups: net.lang.c Subject: Declaring argument types Message-ID: <312@sun.UUCP> Date: Tue, 13-Sep-83 03:31:10 EDT Article-I.D.: sun.312 Posted: Tue Sep 13 03:31:10 1983 Date-Received: Wed, 14-Sep-83 23:12:41 EDT References: umcp-cs.2330 Lines: 26 Now if only one could use the same syntax to declare a function as to define it...eg, if you can say int foo(int, struct bar *); then can you say int foo(int x, struct bar *p) { return x + p->foo; } Also, I assume that if you define the function in the same source file, the compiler will default to checking and coercing the types of the arguments in subsequent calls. What do you do if you don't want that? Perhaps declare it the old way first? eg: int foo(); int foo(x, y, p) int x, y; char *p; { mess around with variable numbers of args } I know it's silly to comment on a proposal before it's been made, but that's often the only time the designers are willing to consider changes...