Path: utzoo!utdoe!generic!pnet91!ericmcg From: ericmcg@pnet91.cts.com (Eric Mcgillicuddy) Newsgroups: comp.sys.apple2 Subject: Orca/C 1.2 bug Message-ID: <841@generic.UUCP> Date: 11 Jun 91 22:15:06 GMT Sender: root@generic.UUCP Organization: People-Net [pnet91], Etobicoke, ON Lines: 22 Has anyone had trouble declaring a void function? The lexical analyser tells me that it was expecting a "(" as the first character after the close bracket of the parameter list. i.e. void foo () { ^ "(" expected or void foo ( int myparms) ; ^ "(" expected (yes I know the code is wrong) This is is perturbing because the manual states that a void function is more efficient since returning a parameter adds more overhead code. Declaring the same functions as int solves the problem, but I am concerned with efficiency and legibility (why type a function that doesn't return anything? Wouldn't optimizers kill a function like this?) UUCP: bkj386!pnet91!ericmcg INET: ericmcg@pnet91.cts.com