On Thursday, 5 March 2020 at 20:13:11 UTC, Adnan wrote:
auto d = some!(some!int(9));
My guess would be this line is causing your trouble. That is
trying to pass an instance as a value at compile time, thus
triggering ctfe.
Since you use the `Array` object inside and that uses malloc
The following program produces an error message and it is not
clear exactly what line causes this error:
module maybe;
@nogc:
private import std.container : Array;
struct MayBe(T) {
Array!T data;
this(T datum) {
data.reserve(1);
data.insert(datu