Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!huxley!glenn From: glenn@bitstream.com (Glenn P. Parker) Newsgroups: comp.lang.c++ Subject: Re: const in a class Message-ID: Date: 14 Jun 91 14:05:35 GMT References: <1991Jun15.014436.10060@kcbbs.gen.nz> Sender: glenn@huxley.UUCP Reply-To: (Glenn Parker) Distribution: comp Organization: Bitstream, Inc. Lines: 19 In-reply-to: Chris_Sullivan@kcbbs.gen.nz's message of 15 Jun 91 01:44:36 GMT In article <1991Jun15.014436.10060@kcbbs.gen.nz> Chris_Sullivan@kcbbs.gen.nz (Chris Sullivan) writes: > class C { > const int size = 1000; > char array[size]; > ... > } This is a hack, but it has been suggested by greater authorities than me! class C { enum { size = 1000 }; char array[size]; // ... }; -- Glenn P. Parker glenn@bitstream.com Bitstream, Inc. uunet!huxley!glenn 215 First Street BIX: parker Cambridge, MA 02142-1270