Re: Reference counting example

2022-04-27 Thread vit via Digitalmars-d-learn
On Tuesday, 26 April 2022 at 23:33:28 UTC, cc wrote: On Tuesday, 26 April 2022 at 22:16:01 UTC, cc wrote: Test application: I should point out that all this stuff with saving refcounted things to arrays and so on is extremely untested and experimental One problem I'm seeing is the

Re: Reference counting example

2022-04-26 Thread cc via Digitalmars-d-learn
On Tuesday, 26 April 2022 at 22:16:01 UTC, cc wrote: Test application: I should point out that all this stuff with saving refcounted things to arrays and so on is extremely untested and experimental One problem I'm seeing is the inability for a refcounted class to pass itself to another

Re: Reference counting example

2022-04-26 Thread cc via Digitalmars-d-learn
On Tuesday, 26 April 2022 at 06:55:34 UTC, Alain De Vos wrote: Can someone provide a simple/very simple reference counting or refcounted example i can understand. Thanks. I've been playing around with the automem[1] library's RefCounted feature as we speak, it seems to fit my needs more than

Re: Reference counting example

2022-04-26 Thread JG via Digitalmars-d-learn
On Tuesday, 26 April 2022 at 06:55:34 UTC, Alain De Vos wrote: Can someone provide a simple/very simple reference counting or refcounted example i can understand. Thanks. I suggest to look at RefCounted [here](https://code.dlang.org/packages/automem) rather than in Phobos. There are simple

Reference counting example

2022-04-26 Thread Alain De Vos via Digitalmars-d-learn
Can someone provide a simple/very simple reference counting or refcounted example i can understand. Thanks.