Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!leah!rds95 From: rds95@leah.Albany.Edu (Robert Seals) Newsgroups: comp.unix.aix Subject: Re: predefined macros and "MAXFLOAT" Summary: not 'const' - 'static' Keywords: xlc, defines Message-ID: <3584@leah.Albany.Edu> Date: 29 Aug 90 18:57:13 GMT References: <3583@leah.Albany.Edu> Organization: The University at Albany, Computer Services Center Lines: 19 In article <3583@leah.Albany.Edu>, I wrote; > is an extern unsigned int. So, it's impossible to do something like > > const float lims[] = {1.0, 2.5, MAXFLOAT}; Well, it turns out that "const" is perfectly OK, but "static" gets the error message "illegal constant expression". Strange. It seems to me that 'const' oughta be NG, and static oughta be OK. What's da scoop? rob -- -------------------------------------------------------------------------------- "Unix has its weak points, but its file system is not one of them." -Chris Torek rob rob@asrcmv.albany.edu or rds95@leah.albany.edu or rob@dinner.albany.edu I have no idea what the uucp path to me is.