[Issue 526] Compiler crash when use typetuple in template argument

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Oct 3 07:45:17 PDT 2007


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


shro8822 at vandals.uidaho.edu changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |shro8822 at vandals.uidaho.edu




------- Comment #2 from shro8822 at vandals.uidaho.edu  2007-10-03 09:45 -------
this would be really cool if you could do it:

template Using(alias fn)
{
 static if(fn args == function)
 {
  template Replace(I...)
  {
  alias RemoveIndex!(I).From(args) dropedArgs;
  template With(newArgs v) // derived arg list in template == typesafe
  {
   ...
  }
 }
 else static assert(false)
}


-- 



More information about the Digitalmars-d-bugs mailing list