Re: sumtype 0.5.0

2018-08-09 Thread Paul Backus 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`. Version 0.5.2, with fixes for the bugs reported in this thread, is now available. Thanks to vit for their detailed feedback! I

Re: sumtype 0.5.0

2018-08-09 Thread Paul Backus via Digitalmars-d-announce
On Thursday, 9 August 2018 at 07:52:12 UTC, vit wrote: SumType without initialization doesn't fail if first type has @disabled this(). It did fail for me, but it also failed *with* initialization too, so there was definitely a bug there. method toString is not template. (why is there in the

Re: autowrap v0.0.1 - Automatically wrap existing D code for use in Python and Excel

2018-08-09 Thread Nicholas Wilson via Digitalmars-d-announce
On Monday, 6 August 2018 at 00:47:12 UTC, Nicholas Wilson wrote: Sure https://github.com/thewilsonator/jupyterd The echo interpreter now works, and the dmd one is there. I've got no idea if it works because I'm on OSX (yay no shared library support) if someone wants to test it that would be g

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 l

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); } ch

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 l