On Thursday, 10 September 2015 at 12:34:54 UTC, Daniel Kozák
wrote:
On Thu, 10 Sep 2015 11:38:35 +
"Gary Willoughby" wrote:
On Wednesday, 9 September 2015 at 23:22:49 UTC, ponce wrote:
> - RefCounted
>
> Only for D structs. std::shared_ptr works for all.
RefCounted works with classes as
On Thu, 10 Sep 2015 11:38:35 +
"Gary Willoughby" wrote:
> On Wednesday, 9 September 2015 at 23:22:49 UTC, ponce wrote:
> > - RefCounted
> >
> > Only for D structs. std::shared_ptr works for all.
>
> RefCounted works with classes as well.
>
> http://dlang.org/phobos/std_typecons.html#.RefCo
On Wednesday, 9 September 2015 at 23:22:49 UTC, ponce wrote:
- RefCounted
Only for D structs. std::shared_ptr works for all.
RefCounted works with classes as well.
http://dlang.org/phobos/std_typecons.html#.RefCounted
On Wednesday, 9 September 2015 at 20:17:44 UTC, cym13 wrote:
This is subtly missing the main question: isn't C++-like memory
management of D classes possible with Unique, RefCounted and
Scoped?
- Unique
C++ has move semantics which make moves explicit. D's Unique is
more like the deprecat
On Wednesday, 9 September 2015 at 20:37:40 UTC, cym13 wrote:
Hence my question: in what? (I assume you are talking about
Unique RefCounted etc and not about classes).
I think you should just refer them to the relevant man pages.
Explanations are just going to be confusing as they are
differen
On Wednesday, 9 September 2015 at 20:34:03 UTC, Ola Fosheim
Grøstad wrote:
On Wednesday, 9 September 2015 at 20:17:44 UTC, cym13 wrote:
This is subtly missing the main question: isn't C++-like
memory management of D classes possible with Unique,
RefCounted and Scoped? I understand the limitatio
On Wednesday, 9 September 2015 at 20:17:44 UTC, cym13 wrote:
This is subtly missing the main question: isn't C++-like memory
management of D classes possible with Unique, RefCounted and
Scoped? I understand the limitations you mentioned, but it
I don't think it is a good idea to tell C++ progr
On Wednesday, 9 September 2015 at 20:05:06 UTC, ponce wrote:
C++ only has a D struct equivalent so all destructors are
called deterministically. It's the addition of classes that
create the problems in D.
C++ can also throw by value, something that D can't really do.
C++ objects can be:
- hea
On Wednesday, 9 September 2015 at 19:53:55 UTC, ponce wrote:
Oops, posted by mistake.
On Wednesday, 9 September 2015 at 19:48:00 UTC, cym13 wrote:
Hi,
I know C++ and D without being a C++ or D guru (I know way
more about D though). When talking about memory management the
problem of RAII is
On Wednesday, 9 September 2015 at 19:48:00 UTC, cym13 wrote:
Hi,
I know C++ and D without being a C++ or D guru (I know way more
about D though). When talking about memory management the
problem of RAII is often mentioned along with the fact that
classes use the GC. I know well the difference
Hi,
I know C++ and D without being a C++ or D guru (I know way more
about D though). When talking about memory management the problem
of RAII is often mentioned along with the fact that classes use
the GC. I know well the difference between structs and classes
and don't want to talk about the
11 matches
Mail list logo