Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!tdatirv!sarima From: sarima@tdatirv.UUCP (Stanley Friesen) Newsgroups: comp.lang.c++ Subject: Re: using new to allocate an array of objects Message-ID: <24@tdatirv.UUCP> Date: 12 Oct 90 15:05:08 GMT References: <26597@cs.yale.edu> Reply-To: sarima@tdatirv.UUCP (Stanley Friesen) Distribution: usa Organization: Teradata Corp., Irvine Lines: 25 In article <26597@cs.yale.edu> omtzigt-theo@CS.YALE.EDU (Erwinus Theodorus Leonardus Omtzigt (Theo)) writes: >I am trying to allocate an array of a user defined class along the >lines of allocating a, say, char array. >So, I try to mimic > char *string = new char[15]; >with > TimeSlot *TimingWheel = new TimeSlot[TimingWheelSize]; >The compiler, however, complaints about an illegal assignment; > TimeSlot * = TimeSlot What are you doing wrong?? I haven't the faintest! This looks like a compiler bug to me. I have used the same syntax myself with no problem!! Anyone out there have *any* clues. -- --------------- uunet!tdatirv!sarima (Stanley Friesen)