![](/i/fill.gif) |
![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3ea8def7$1@news.povray.org>,
"Thorsten Froehlich" <tho### [at] trf de> wrote:
> > Reference counting is extremely simple...in my opinion, it doesn't come
> > under "reinventing the wheel". And if there is no widespread standard
> > implementation, rolling your own is better than not doing it at all.
> There is one, and it will be part of the ISO C++ standard in the very near
> future.
But it isn't part of the current standard (is it?), and won't be
widespread for a while.
> You can check periodically the page
> <http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/> and wait for the
> "Post-Oxford mailing" link to appear. It will make available documents that
> say what has been accepted.
Hmm, looks interesting...
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Thorsten Froehlich
Subject: Re: Passing file handles to macros - how?
Date: 25 Apr 2003 13:58:27
Message: <3ea97743@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <cja### [at] netplex aussie org> ,
Christopher James Huff <cja### [at] earthlink net> wrote:
>> > Reference counting is extremely simple...in my opinion, it doesn't come
>> > under "reinventing the wheel". And if there is no widespread standard
>> > implementation, rolling your own is better than not doing it at all.
>> There is one, and it will be part of the ISO C++ standard in the very near
>> future.
>
> But it isn't part of the current standard (is it?), and won't be
> widespread for a while.
No, you missed something important, probably because you over-read it in the
description of shared_ptr: There is a stable working implementation the
proposal is based on. It is *not* some nice theoretical idea nobody ever
bothered to implement. Just go and get it at boost.org...
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3ea97743@news.povray.org>,
"Thorsten Froehlich" <tho### [at] trf de> wrote:
> No, you missed something important, probably because you over-read it in the
> description of shared_ptr: There is a stable working implementation the
> proposal is based on. It is *not* some nice theoretical idea nobody ever
> bothered to implement. Just go and get it at boost.org...
I haven't read any descriptions of shared_ptr. As far as I can tell, it
is not part of the current standard. I am well aware of the existance of
good implementations...if one of those is available with an open enough
license, I see no reason to avoid using it rather than writing a custom
version. But it isn't part of the current standard, and if/when it is
standardized, it will take some time to be widely implemented. None of
this is a good reason for waiting for it to become standardized and
widely implemented...if anything, it is a reason not to do so.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Thorsten Froehlich
Subject: Re: Passing file handles to macros - how?
Date: 25 Apr 2003 15:26:51
Message: <3ea98bfb@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <cja### [at] netplex aussie org> ,
Christopher James Huff <cja### [at] earthlink net> wrote:
> I haven't read any descriptions of shared_ptr. As far as I can tell, it
> is not part of the current standard. I am well aware of the existance of
> good implementations...if one of those is available with an open enough
> license, I see no reason to avoid using it rather than writing a custom
> version.
No, no, no, you still didn't understand the full scope: Read, from top to
bottom these documents...
<http://anubis.dkuug.dk/jtc1/sc22/wg21/docs/papers/2003/n1431.htm>
<http://www.boost.org/more/lib_guide.htm#License>
<http://www.boost.org/index.htm> (first two paragraphs)
<http://www.boost.org/libs/smart_ptr/> (the implementation)
As you can see, you are looking for complications where there are none. It
is ready for use already, and it will be standard compliant once there is
the new standard out. Nevertheless, it is as close to the standard as any
implementation can be given that it is the reference implementation ;-)
> But it isn't part of the current standard, and if/when it is
> standardized, it will take some time to be widely implemented. None of
> this is a good reason for waiting for it to become standardized and
> widely implemented...if anything, it is a reason not to do so.
Sorry, you lost me here...
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <3ea98bfb@news.povray.org>,
"Thorsten Froehlich" <tho### [at] trf de> wrote:
> As you can see, you are looking for complications where there are none. It
> is ready for use already, and it will be standard compliant once there is
> the new standard out. Nevertheless, it is as close to the standard as any
> implementation can be given that it is the reference implementation ;-)
I'm saying there isn't a complication where you say there is one.
> > But it isn't part of the current standard, and if/when it is
> > standardized, it will take some time to be widely implemented. None of
> > this is a good reason for waiting for it to become standardized and
> > widely implemented...if anything, it is a reason not to do so.
>
> Sorry, you lost me here...
Better file handling needs reference counting. Current STL doesn't have
anything to help with reference counting. Future STL standards that may
are irrelevant, they aren't here yet. There are current implementations
of what will probably be in the next standard, and a custom version
would be trivial. Reference counting is no barrier to better file
handling in the POV-Ray SDL.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
From: Thorsten Froehlich
Subject: Re: Passing file handles to macros - how?
Date: 25 Apr 2003 18:28:12
Message: <3ea9b67c@news.povray.org>
|
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
In article <cja### [at] netplex aussie org> ,
Christopher James Huff <cja### [at] earthlink net> wrote:
> Reference counting is no barrier to better file
> handling in the POV-Ray SDL.
It is, because you cannot use any clean implementation in POV-Ray as I
pointed out before.
Thorsten
____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trf de
Visit POV-Ray on the web: http://mac.povray.org
Post a reply to this message
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |
|
![](/i/fill.gif) |
| ![](/i/fill.gif) |
|
![](/i/fill.gif) |