Passing Tuple Arguments to Tuple

Kirk McDonald kirklin.mcdonald at gmail.com
Tue Dec 26 13:11:13 PST 2006


Xinok wrote:
> I found out it's a problem with using an index []
> 
> template a(V...){
> 	alias V a;
> }
> 
> template b(V...){
> 	alias a!(V) b; // This compiles OK
> 	// alias a!(V[0]) b; // But this gives the error
> 	// alias a!(V[0..length]) b; // And so does this
> }

Yes, this is a known issue. See bugs 582 and 586:

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

-- 
Kirk McDonald
Pyd: Wrapping Python with D
http://pyd.dsource.org



More information about the Digitalmars-d mailing list