www.digitalmars.com         C & C++   DMDScript  
Archives

D Programming
digitalmars.D
digitalmars.D.bugs
digitalmars.D.dtl
digitalmars.D.ide
digitalmars.D.dwt
digitalmars.D.announce
digitalmars.D.learn
digitalmars.D.debugger
D.gnu
D

C/C++ Programming
c++
c++.announce
c++.atl
c++.beta
c++.chat
c++.command-line
c++.dos
c++.dos.16-bits
c++.dos.32-bits
c++.idde
c++.mfc
c++.rtl
c++.stl
c++.stl.hp
c++.stl.port
c++.stl.sgi
c++.stlsoft
c++.windows
c++.windows.16-bits
c++.windows.32-bits
c++.wxwindows

digitalmars.empire
digitalmars.DMDScript
electronics


digitalmars.D.bugs - ping Walter: RFC

I have a design decision hanging on if issue 3073 is valid:

http://d.puremagic.com/issues/show_bug.cgi?id=3072

I'm not looking to get it fixed right now (I wouldn't mind if it was :) but 
to move forward on something I need to know if it ever will be.

----

The short version is should this work:

template Do(T...)
{
  void It()
  {
      foreach(i,_;T) writef("%sn", T[i]);
  }
}

struct S
{
    int i; int j; float k; char[] m;
    mixin Do!(i, k, m);
}
Jun 22 2009