[Issue 1241] ICE on template instance parameter
    d-bugmail at puremagic.com 
    d-bugmail at puremagic.com
       
    Sun Jul 22 10:02:41 PDT 2007
    
    
  
http://d.puremagic.com/issues/show_bug.cgi?id=1241
shro8822 at vandals.uidaho.edu changed:
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shro8822 at vandals.uidaho.edu
------- Comment #2 from shro8822 at vandals.uidaho.edu  2007-07-22 12:02 -------
I have also run into this one. I was trying to use the tuples+templates as
compile time trees
template Foo(A...)
{
  template Bar(B...)
  {
    alias A a;
    alias B b;
  }
}
alias Foo!(Foo!(1,2,3).Bar!(4,5,6)).Bar!(Foo!(7,8,9).Bar!(10,11,12)) tree;
foreach( a; tree.a)
{
  foreach(aa; a.a);
  foreach(ab; a.b);
}
foreach( b; tree.b)
{
  foreach(ba; b.a);
  foreach(bb; b.b);
}
Can we please get a fix on this one? It will drop a LOT of barriers to
elaborate template systems. I have a few really cool things that use it and
would like to put them in my talk without the disclaimer of "this would work
but for bug #1241"
-- 
    
    
More information about the Digitalmars-d-bugs
mailing list