Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!ncar!elroy.jpl.nasa.gov!hacgate!SDFSUN1!johnl From: johnl@SDFSUN1.hac.com (John Lee) Newsgroups: comp.sys.amiga.programmer Subject: Re: "chip" in SAS C Message-ID: <12579@hacgate.UUCP> Date: 9 Jan 91 02:03:18 GMT References: <1991Jan4.031246.20044@cs.uoregon.edu> <1991Jan6.092515.6970@cs.uoregon.edu> <12545@hacgate.UUCP> <1991Jan8.070945.7475@ux1.cso.uiuc.edu> Sender: news@hacgate.UUCP Reply-To: johnl@SDFSUN1.hac.com (John Lee) Organization: Hughes Aircraft Co., El Segundo, CA Lines: 33 In article <1991Jan8.070945.7475@ux1.cso.uiuc.edu> lrg7030@uxa.cso.uiuc.edu (Loren Rittle) writes: >johnl@SDFSUN1.hac.com (John Lee) writes: [...] >> I still think the SAS/C error message is oblique. I hate it when programs do >> that. > >No, that is not the rub :-). SAS/C v5.10 (and the past few before it) >fully supports the initialization of aggregate automatic variables as >per the ANSI standard. So, in other words, you don't know what you are >talking about. The reason, as stated in other messages, is that the chip >and the auto (implied in this case) keywords are incompatible with one >another. If you know what an lvalue is the error message makes perfect >sense, otherwise read pages 195-197 of K&R's second edition (Keep in mind >that chip is a type qualifier). Of course, how silly of me. You can't have auto chip unless you can ensure that the stack is entirely allocated in chip memory. As for initialization of auto aggregates, it's my UNIX C background. ANSI C hasn't caught up to BSD yet. However, I do take exception regarding the error message. The SAS/C error message, "Error 25: modifiable lvalue required", does indeed make sense, but in the same way as "syntax error" and is as helpful. I'd much prefer something along the lines of "conflicting type modifier" or "storage class conflict." ------------------------------------------------------------------------------- The crew faces deadly GURUs! Next time on AmigaDOS: The Next Generation. +--------+ John Lee | HUGHES | +--------+ ARPAnet: jhlee@hac2arpa.hac.com Hughes Aircraft Company The above opinions are those of the user and not of those of this machine.