Xref: utzoo comp.sys.amiga:75851 comp.sys.amiga.tech:17476 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!mips!cs.uoregon.edu!rlittle From: rlittle@cs.uoregon.edu (Robert A. Little) Newsgroups: comp.sys.amiga,comp.sys.amiga.tech Subject: Re: "chip" in SAS C Message-ID: <1991Jan6.092515.6970@cs.uoregon.edu> Date: 6 Jan 91 09:25:15 GMT References: <1991Jan4.031246.20044@cs.uoregon.edu> Sender: news@cs.uoregon.edu (Netnews Owner) Organization: Department of Computer Science, University of Oregon Lines: 28 In article <1991Jan4.031246.20044@cs.uoregon.edu> rlittle@comix.cs.uoregon.edu (Robert A. Little) writes: > > >Q: Why does the following not work? > >.... >USHORT chip Image={0xF700,0xF700}; >.... > >The SAS C5.10 compiler produces "Error 25: modifiable lvalue required" > > Two things...First: I mistyped the message--my code read: USHORT chip ImageData[]={0xF7000,0xEFFF,...}; Second: The compiler would only compile the code if I moved it from within a procedure to a global declaration...it compiles fine now...my only question is, Why? Why won't it compile if the declaration is made within a procedure? Some type of a scope problem? Thanks --rob rlittle@cs.uoregon.edu