Le 19/04/2012 05:04, "Michaël Larouche" " a
écrit :
>
> Reading the bug thread, I am wondering why my template worked in a
> struct but not inside a class.
>
> Anyway, I decided to move my mixin outside the struct/class and abuse
> UFCS instead. Now everything works like a charm :)
Cool. Glad it
On Wednesday, 18 April 2012 at 16:56:39 UTC, SomeDude wrote:
On Tuesday, 17 April 2012 at 00:04:16 UTC, Michaël Larouche
wrote:
My template works with a struct but when I try to mixin my
template in a class, I get compile error because
T.tupleof.length returns 0.
Here's the whole code:
http:/
On Tuesday, 17 April 2012 at 00:04:16 UTC, Michaël Larouche
wrote:
My template works with a struct but when I try to mixin my
template in a class, I get compile error because
T.tupleof.length returns 0.
Here's the whole code:
http://ideone.com/UR6YU
For what it's worth, dmd 2.059 (it seems y
On Monday, 16 April 2012 at 23:58:29 UTC, Michaël Larouche wrote:
I've given a second chance to D after watching D videos from
Lang.NEXT 2012. As a first look, I wanted to try generate
serialization code at compile time.
Here's the class:
class MyObject
{
public int m_id;
public Data m