Path: utzoo!mnetor!uunet!husc6!bloom-beacon!oberon!cit-vax!elroy!mahendo!jplgodo!wlbr!scgvaxd!ashtate!dbase!drc From: drc@dbase.UUCP (Dennis Cohen) Newsgroups: comp.sys.mac.programmer Subject: Re: MPW C bug, again! Message-ID: <345@dbase.UUCP> Date: 11 Apr 88 14:34:11 GMT References: <3331@tekgvs.TEK.COM> <6055@cit-vax.Caltech.Edu> Organization: Ashton Tate Development Center Glendale Cal. Lines: 20 Keywords: MPW C bug In article <6055@cit-vax.Caltech.Edu>, wetter@tybalt.caltech.edu (Pierce T. Wetter) writes: > You think that's a bug? That's not a bug, this is a bug... > > short i,j,k,ok,l; > > Seems you can't have a varible named 'ok'. > Ran into this one porting gnuchess. Arrgh. Yes, you can have a variable named 'ok'. The problem you are running into here is that there are a couple of constants predeclared by the Dialog Manager as per Inside Mac for ok and cancel (named, interestingly enough, ok and cancel). You're trying to redeclare something here and the compiler, quite correctly, is telling you that you can't. If you don't bring in those libraries and interfaces, ok will be a valid identifier. Dennis Cohen Ashton-Tate Macintosh Division dBASE Mac Development Team -------------------------- Disclaimer: Any opinions expressed above are those of the author.