Re: daii - allocator-friendly closures and raii

2017-07-10 Thread Martin Nowak via Digitalmars-d-announce
On 06/23/2017 09:02 PM, Boris-Barboris wrote: > Hi, I wrote a small library, inspired by atilaneves automem. I didn't > like some things, especially that smart pointers proxied underlying > types, also I wanted class upcasting. > > https://github.com/Boris-Barboris/daii >

Re: daii - allocator-friendly closures and raii

2017-06-23 Thread Steven Schveighoffer via Digitalmars-d-announce
On 6/23/17 4:24 PM, Boris-Barboris wrote: On Friday, 23 June 2017 at 20:13:07 UTC, ag0aep6g wrote: You've got bad `@trusted`s: Ty, I misunderstood the concept. I guess in a code like this it's mostly @system anyways, too many indirections to control safety level. I'm probably gonna remove

Re: daii - allocator-friendly closures and raii

2017-06-23 Thread Boris-Barboris via Digitalmars-d-announce
On Friday, 23 June 2017 at 20:13:07 UTC, ag0aep6g wrote: You've got bad `@trusted`s: Ty, I misunderstood the concept. I guess in a code like this it's mostly @system anyways, too many indirections to control safety level. I'm probably gonna remove most of the attributes.

Re: daii - allocator-friendly closures and raii

2017-06-23 Thread ag0aep6g via Digitalmars-d-announce
On 06/23/2017 09:02 PM, Boris-Barboris wrote: https://github.com/Boris-Barboris/daii You've got bad `@trusted`s: https://github.com/Boris-Barboris/daii/blob/3e15429a4000494ce61330fb5adcfc700ec1942c/source/closure.d#L108 `_f` may be unsafe. It can't be trusted. `args` may have unsafe

daii - allocator-friendly closures and raii

2017-06-23 Thread Boris-Barboris via Digitalmars-d-announce
Hi, I wrote a small library, inspired by atilaneves automem. I didn't like some things, especially that smart pointers proxied underlying types, also I wanted class upcasting. https://github.com/Boris-Barboris/daii https://code.dlang.org/packages/daii What do you think about the