Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usc!sdd.hp.com!uakari.primate.wisc.edu!aplcen!unmvax!pprg.unm.edu!topgun!mustang!nntp-server.caltech.edu!tybalt.caltech.edu!toddpw From: toddpw@tybalt.caltech.edu (Todd P. Whitesel) Newsgroups: comp.sys.apple2 Subject: Re: Orca/C, bug? Message-ID: <1990Oct19.133843.26089@nntp-server.caltech.edu> Date: 19 Oct 90 13:38:43 GMT References: <11906@bsu-cs.bsu.edu> <4b7SZuu00Vox0UOlYs@andrew.cmu.edu> Sender: news@nntp-server.caltech.edu Distribution: usa Organization: California Institute of Technology, Pasadena Lines: 17 Nntp-Posting-Host: tybalt.caltech.edu jh4o+@andrew.cmu.edu (Jeffrey T. Hutzelman) writes: >1.) Never declare main as void. Main returns an int. Um, I have been writing void main (...) without problems ever since I got ORCA (over 1 month of extensive use). If I declare main as void then everything works; if I try to return something from main I get an error because main is declared to return void. In actuality, 1 thru 4 byte values are returned in registers, so it doesn't really matter as far as code generation is concerned unless you are returning a struct or a float. BTW- I am still using a beta. Todd Whitesel toddpw @ tybalt.caltech.edu