Re: std.experimental.alloctor does not work with non default constructible types

2016-06-03 Thread Andrei Alexandrescu via Digitalmars-d
On 6/3/16 8:24 AM, maik klein wrote: Thanks, I opened an issue here https://issues.dlang.org/show_bug.cgi?id=16117 I just used makeArray because it was just so convenient to use but I guess I could also switch to the untyped interface if this proves to be a blocker. Great, thanks. That seems t

Re: std.experimental.alloctor does not work with non default constructible types

2016-06-03 Thread Jonathan M Davis via Digitalmars-d
On Friday, June 03, 2016 14:01:57 Dicebot via Digitalmars-d wrote: > For `makeArray` I don't see how it can possibly be fixed. Lack of > default construction means no valid initial value for array elements, > period. I don't know if you can declare plain static array of such > structs but you shoul

Re: std.experimental.alloctor does not work with non default constructible types

2016-06-03 Thread maik klein via Digitalmars-d
On Friday, 3 June 2016 at 12:16:54 UTC, Andrei Alexandrescu wrote: On 6/3/16 7:57 AM, maik klein wrote: On Friday, 3 June 2016 at 11:52:52 UTC, Andrei Alexandrescu wrote: On 6/3/16 7:47 AM, maik klein wrote: [...] Looks like a bug. Do you have a short repro? -- Andrei import std.experiment

Re: std.experimental.alloctor does not work with non default constructible types

2016-06-03 Thread Andrei Alexandrescu via Digitalmars-d
On 6/3/16 7:57 AM, maik klein wrote: On Friday, 3 June 2016 at 11:52:52 UTC, Andrei Alexandrescu wrote: On 6/3/16 7:47 AM, maik klein wrote: I rely a lot on std.experimental.alloctor for my "game engine". I have just finished creating my own version for "Algebraic" and I want to disable to defa

Re: std.experimental.alloctor does not work with non default constructible types

2016-06-03 Thread Dicebot via Digitalmars-d
On 06/03/2016 01:47 PM, maik klein wrote: > I rely a lot on std.experimental.alloctor for my "game engine". I have > just finished creating my own version for "Algebraic" and I want to > disable to default construction as it would make no sense. > > I have also created my own containers, the probl

Re: std.experimental.alloctor does not work with non default constructible types

2016-06-03 Thread maik klein via Digitalmars-d
On Friday, 3 June 2016 at 11:52:52 UTC, Andrei Alexandrescu wrote: On 6/3/16 7:47 AM, maik klein wrote: I rely a lot on std.experimental.alloctor for my "game engine". I have just finished creating my own version for "Algebraic" and I want to disable to default construction as it would make no

Re: std.experimental.alloctor does not work with non default constructible types

2016-06-03 Thread Andrei Alexandrescu via Digitalmars-d
On 6/3/16 7:47 AM, maik klein wrote: I rely a lot on std.experimental.alloctor for my "game engine". I have just finished creating my own version for "Algebraic" and I want to disable to default construction as it would make no sense. I have also created my own containers, the problem is that I

std.experimental.alloctor does not work with non default constructible types

2016-06-03 Thread maik klein via Digitalmars-d
I rely a lot on std.experimental.alloctor for my "game engine". I have just finished creating my own version for "Algebraic" and I want to disable to default construction as it would make no sense. I have also created my own containers, the problem is that I can not use my version of "Algebrai