Testing for template argument being result of takeExactly

monarch_dodra monarchdodra at gmail.com
Sun Sep 23 23:30:11 PDT 2012


On Monday, 24 September 2012 at 06:20:57 UTC, monarch_dodra wrote:
> What is wrong with my proposed solution?

I think I forgot this test, when R is already a type returned by 
takeExactly:

void main( ) {
      alias typeof(takeExactly(R.init, 5)) G;
      Hello!G g;
}

Which also works.


More information about the Digitalmars-d-learn mailing list