Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!uw-entropy!dataio!bright From: bright@Data-IO.COM (Walter Bright) Newsgroups: comp.lang.c++ Subject: Re: Once again, Zortech C++ problem Message-ID: <2100@dataio.Data-IO.COM> Date: 16 Aug 89 17:35:47 GMT References: <24@<19036> <4800072@m.cs.uiuc.edu> Reply-To: bright@dataio.Data-IO.COM (Walter Bright) Organization: Data I/O Corporation; Redmond, WA Lines: 7 In article <4800072@m.cs.uiuc.edu> rchen@m.cs.uiuc.edu writes: >Point Point::operator+(Point& p) { Point q(xc + p.xc, yc + p.yc); return q; } > b = Point(10, 0) + Point(0, 30); ZTC 1.07 has a problem in that functions that return a struct by value return it in a static memory location, instead of in a temporary on the stack. This will be fixed in the next version.