Re: struct Unique(T)

2013-11-07 Thread Namespace
On Thursday, 7 November 2013 at 00:07:25 UTC, ChrisG wrote: Hi, I've been following the D language off and on for several years, have read Andrei's D book, but haven't ever posted here before. Mostly, I come from a C++ and C# background. Recently, I was playing with D using the derelict

Re: struct Unique(T)

2013-11-07 Thread ChrisG
On Thursday, 7 November 2013 at 01:09:45 UTC, Chris Cain wrote: On Thursday, 7 November 2013 at 00:07:25 UTC, ChrisG wrote: My question is: what's the status of D's struct Unique? It looks like struct RefCounted is current, but I can't tell with Unique. There's several comments in the source

Re: struct Unique(T)

2013-11-07 Thread Namespace
On Thursday, 7 November 2013 at 18:19:35 UTC, ChrisG wrote: On Thursday, 7 November 2013 at 09:51:38 UTC, Namespace wrote: Dgame use the SDL also and needed therefore (as you do) shared and unique pointers (mostly shared). So I wrote my own versions and like to share them with you, maybe it

struct Unique(T)

2013-11-06 Thread ChrisG
Hi, I've been following the D language off and on for several years, have read Andrei's D book, but haven't ever posted here before. Mostly, I come from a C++ and C# background. Recently, I was playing with D using the derelict bindings for the SDL library. The SDL library uses handles in

Re: struct Unique(T)

2013-11-06 Thread Chris Cain
On Thursday, 7 November 2013 at 00:07:25 UTC, ChrisG wrote: My question is: what's the status of D's struct Unique? It looks like struct RefCounted is current, but I can't tell with Unique. There's several comments in the source that say: doesn't work yet. It seems like some of it could be