Re: Note about variant

2011-10-09 Thread Robert Jacques
On Sun, 09 Oct 2011 04:56:45 -0400, Mariusz Gliwiński wrote: Dnia niedziela, 9 października 2011 00:13:29 Jonathan M Davis pisze: Part of your problem may be that D doesn't use copy constructors. Rather, it has postblit constructors: Yes, i know about naming difference and behavioral differen

Re: Note about variant

2011-10-09 Thread Mariusz Gliwiński
Dnia niedziela, 9 października 2011 00:13:29 Jonathan M Davis pisze: > Part of your problem may be that D doesn't use copy constructors. Rather, it > has postblit constructors: Yes, i know about naming difference and behavioral difference. It's not a problem for me anymore, this post is for people

Re: Note about variant

2011-10-09 Thread Jonathan M Davis
Part of your problem may be that D doesn't use copy constructors. Rather, it has postblit constructors: http://d-programming-language.org/struct.html#StructPostblit - Jonathan M Davis

Note about variant

2011-10-08 Thread Mariusz Gliwiński
Firstly, i don't know if i'm using latest version (this is from dmd 2.055). Ok now, generally - i love it, BUT today it tortured me :(. Firstly, it should be checked if argument struct has copy constructor (or how i should name it): import std.variant; struct S { ubyte b; ubyte