Xref: utzoo comp.sys.amiga:76025 comp.sys.amiga.tech:17589 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!apple!julius.cs.uiuc.edu!ux1.cso.uiuc.edu!uxa.cso.uiuc.edu!lrg7030 From: lrg7030@uxa.cso.uiuc.edu (Loren Rittle) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: "chip" in SAS C Message-ID: <1991Jan8.070945.7475@ux1.cso.uiuc.edu> Date: 8 Jan 91 07:09:45 GMT References: <1991Jan4.031246.20044@cs.uoregon.edu> <1991Jan6.092515.6970@cs.uoregon.edu> <12545@hacgate.UUCP> Sender: news@ux1.cso.uiuc.edu (News) Organization: University of Illinois at Urbana Lines: 21 johnl@SDFSUN1.hac.com (John Lee) writes: > Aha! There's the rub... You cannot initialize aggregate automatic variables. > You'll need to make it static by: 1) moving it outside the procedure, making > it global, or 2) inserting the storage class keyword 'static' in front. > > 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). -- ``In short, this is the absolute coolest computer device ever invented!'' -Tom Denbo speaking about The VideoToaster by NewTek ``Think about NewTek's VideoToaster! Now think about the Amiga!'' Loren J. Rittle lrg7030@uxa.cso.uiuc.edu