POV-Ray : Newsgroups : povray.programming : Array pointers : Re: amalloc() (long post) Server Time
27 Sep 2024 03:20:01 EDT (-0400)
  Re: amalloc() (long post)  
From: Warp
Date: 18 Jan 2003 11:00:53
Message: <3e297a35@news.povray.org>
Vadim Sytnikov <syt### [at] rucom> wrote:
> Interesting. Besides *MUCH* harder heap debugging with 'new' operators, I
> know no significant differences (it did not seem like meat calling ctors).

  If you allocate an array of objects with malloc(), they will not be
constructed. When you free() the array, the objects will not be destructed.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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