From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexandre Oliva To: "Stephen Lindholm" Cc: Subject: Re: Peculiar functionality Date: Mon, 31 May 1999 21:36:00 -0000 Message-ID: References: <002e01bea18f$075ec840$dbaf6580@sneezy.qt.org> X-SW-Source: 1999-05n/msg00523.html Message-ID: <19990531213600.-viw29yFvwYo5cSwARAvaC_XstFhy91hBrK5BlpnESo@z> On May 18, 1999, "Stephen Lindholm" wrote: > 1) The new operators "or" "and" "not" (etc), described on Stroustrup C++PL > 3rd ed. p. 829 appear to not exist in egcs, or to be turned off by default. Indeed. Use -foperator-names or -ansi. I think it is not enabled by default for fear of breaking header-files that still use them. Maybe it's time to turn them on by default, now that we're moving to more strict ISO C++. > 2) egcs complains when I use arrays of references. If this is bad style, > please explain why. Not only bad style, it's ill-formed. ISO C++ forbids arrays of references, because references are not objects (in the Standard sense). > 3) I can't make class-local constants! You can, but you have to declare them as static, otherwise you won't be allowed to initialize them at the point of declaration. -- Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il {oliva,Alexandre.Oliva}@dcc.unicamp.br aoliva@{acm.org,computer.org} oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org} *** E-mail about software projects will be forwarded to mailing lists