Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!petrus!bellcore!decvax!genrad!panda!talcott!harvard!seismo!mcvax!unido!ztivax!david From: david@ztivax.UUCP Newsgroups: net.lang.c Subject: Modern Arguments to main() Message-ID: <8200002@ztivax.UUCP> Date: Wed, 5-Mar-86 09:26:00 EST Article-I.D.: ztivax.8200002 Posted: Wed Mar 5 09:26:00 1986 Date-Received: Sat, 8-Mar-86 02:47:40 EST Sender: notes@unido.UUCP Lines: 32 Nf-ID: #N:ztivax:8200002:000:1038 Nf-From: ztivax!david Mar 5 14:26:00 1986 Modern Command Line Arguments Soon, I hope, none of us will be working with command line oriented systems. The Mac (or more accurately, Xerox Star/Tajo/Viewpoint) user interface is clearly preferable, in many ways. ^^^^ The current C argument "standard" for the entry point: main(argc,argv) int argc; char **argv; { ... is fine for command line oriented systems. It is intuitive, and therefore easy for programmers to quickly spec (in the mind) and implement some tool. All those neat UNIX tools we use came into being because 1) they were easy to think of, and 2) they were easy to implement. As icon oriented systems become more widely used, perhaps the main(argv,argc) standard should be re-thought. Example: You have an icon representing a program, and a window with some text in it. You want some part of the info to be passed to the program. Pass it as a) args in argv/argc (parse text with window shell), B) pass as stdin, C) some new method. David Smyth seismo!unido!ztivax!david