optional
optional copied to clipboard
An optional/maybe type for D
Hi, I'm trying this out with DMD v2.102.0 with the `Includes a generic or range algorithm` example on https://github.com/aliak00/optional#features: ```D import optional; void main() { auto a = some(3); auto...
Tested with the current package optional 1.3.0, I haven't tested with older versions of package optional. Reduced code example: ```D import std.stdio; import optional; class X { int number =...
Using optional 1.3.0. The following code works with no problems. import optional; class X { int foo() const pure nothrow @safe @nogc { return 5; } } class Y {...