Re: fixedstring: a @safe, @nogc string type

2022-01-11 Thread vit via Digitalmars-d-announce
On Tuesday, 11 January 2022 at 11:16:13 UTC, Moth wrote: On Tuesday, 11 January 2022 at 03:20:22 UTC, Salih Dincer wrote: [snip] glad to hear you're finding it useful! =] ... i know there's currently some wierdness with wchars / dchars equality that needs to be fixed [shouldn't be too much

Re: Added copy constructors to "Programming in D"

2022-01-08 Thread vit via Digitalmars-d-announce
On Saturday, 8 January 2022 at 16:24:03 UTC, Ali Çehreli wrote: On 1/8/22 5:49 AM, Stanislav Blinov wrote: >> Of course, now I stress that postblit is discouraged. > > Bit early, methinks. Copy ctors aren't even fully supported by the > runtime yet. Thanks. The spec discourages postblit as

autoptr (ref counted pointers)

2021-11-12 Thread vit via Digitalmars-d-announce
Hello, I implemented reference counted pointers supporting: - weak pointers (optional). - aliasing. - atomic/non-atomic counters. - multithread ref counted pointers . - arrays. - destructors with attributes - pure, const, immutable and shared support. - limited dip1000 and @safe support. -

Re: record: C# like records for D

2021-07-16 Thread vit via Digitalmars-d-announce
On Wednesday, 14 July 2021 at 23:16:05 UTC, Dylan Graham wrote: [DUB](https://code.dlang.org/packages/record) [Github](https://github.com/hmmdyl/record) This is record. It aims to implement records similar to what C# has by leveraging D's metaprogramming. [C# Example

Re: sumtype 0.5.0

2018-08-09 Thread vit via Digitalmars-d-announce
On Thursday, 9 August 2018 at 01:04:43 UTC, Paul Backus wrote: On Thursday, 9 August 2018 at 00:11:22 UTC, Seb wrote: On Thursday, 9 August 2018 at 00:07:05 UTC, Seb wrote: (It uses the version from DUB and updates itself once daily, but somehow dub still lists 0.4.1 at the moment) It looks

Re: sumtype 0.5.0

2018-08-09 Thread vit via Digitalmars-d-announce
On Thursday, 9 August 2018 at 01:04:43 UTC, Paul Backus wrote: ... @safe opAssign can call @system postblit: bool moved = false; struct S{ this(this)@system{ moved = true; } } void main()@safe{ auto st = SumType!(S).init; st = S.init; assert(moved == true); }

Re: sumtype 0.5.0

2018-08-09 Thread vit via Digitalmars-d-announce
On Thursday, 9 August 2018 at 01:04:43 UTC, Paul Backus wrote: On Thursday, 9 August 2018 at 00:11:22 UTC, Seb wrote: On Thursday, 9 August 2018 at 00:07:05 UTC, Seb wrote: (It uses the version from DUB and updates itself once daily, but somehow dub still lists 0.4.1 at the moment) It looks

Re: sumtype 0.5.0

2018-08-08 Thread vit via Digitalmars-d-announce
On Wednesday, 8 August 2018 at 20:54:13 UTC, Paul Backus wrote: 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` -