POV-Ray : Newsgroups : povray.general : CSDL: C-like Simulation Description Language : Re: CSDL alpha 1 release Server Time
7 Aug 2024 09:27:00 EDT (-0400)
  Re: CSDL alpha 1 release  
From: Lutz Kretzschmar
Date: 23 Jan 2002 17:54:53
Message: <tlfu4ugj6v0ucd2tsavdiq2ihbr15bu5e3@4ax.com>
Hi Warp, you recently wrote in povray.general:

> Thorsten Froehlich <tho### [at] trfde> wrote:
> : return new SubClass(*this);
> 
>   Uh. That hurts my eyes.
Why? That's the standard way of cloning an object (standard in the
sense of widely used). Simply invoke the copy constructor on the
current instance. How else would you write a Clone() or Copy()
function?

- Lutz
  email : lut### [at] stmuccom
  Web   : http://www.stmuc.com/moray


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.