POV-Ray : Newsgroups : povray.general : Passing file handles to macros - how? : Re: Passing file handles to macros - how? Server Time
4 Aug 2024 20:17:41 EDT (-0400)
  Re: Passing file handles to macros - how?  
From: Warp
Date: 24 Apr 2003 20:00:22
Message: <3ea87a96@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
>> What do you need the STL for? Reference counting is trivial to
>> implement.

> Yes, reinvent the wheel.

  Exactly which part of the STL implements reference counting?

  (Ok, most std::string implementations use the copy-on-write technique,
which is a superset of reference counting, but that's a completely different
story because it's a completely hidden feature which you can't use in any
way yourself. Other than that, I don't think there's reference counting
anywhere in the STL.)

>  And then try to add it in a clean manner in
> POV-Ray.  The problem of not being able to use "real" classes as members of
> most data structures makes it a real hassle.  It is about getting a clean
> well-working implementation.  It isn't about "Reference counting is trivial
> to implement." at all.

  I suppose that since pov4 will be designed from the scratch, it will be
made so that reference counting will be easier to implement (ie. the
"file handle" entity is a class in the first place).


  Reference counting and the copy-on-write technique are quite efficient
ways of improving the performance of a program when well used.

-- 
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.