sumtype 0.7.0

2018-11-20 Thread Paul Backus via Digitalmars-d-announce
SumType is a generic sum type for modern D. It is meant as an alternative to `std.variant.Algebraic`. Features: - Pattern matching, including support for structural matching (★) - Self-referential types, using `This` - Works with pure, @safe, @nogc, and immutable (★) - Zero runtime ove

Re: sumtype 0.7.0

2018-11-20 Thread jmh530 via Digitalmars-d-announce
On Wednesday, 21 November 2018 at 00:38:25 UTC, Paul Backus wrote: SumType is a generic sum type for modern D. It is meant as an alternative to `std.variant.Algebraic`. [snip] Keep up the good work.

RCArray for D & C++ - mir-algorithm v3.1.12

2018-11-20 Thread 9il via Digitalmars-d-announce
Thread safe reference counted RCArray with DIP1000 in mind has been released with mir-algorithm v3.1.12. It has well defined C++ header. You can use it from C++ if the same type is used in linked D object file. D's RCArray (1) (mir_rcarray) does not have range primitives, only length, [], an