[Issue 2953] tuple.length rejected as a tuple parameter in a static foreach
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Aug 11 18:51:12 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=2953
Ellery Newcomer <ellery-newcomer at utulsa.edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ellery-newcomer at utulsa.edu
--- Comment #1 from Ellery Newcomer <ellery-newcomer at utulsa.edu> 2011-08-11 18:51:10 PDT ---
Ran into something similar a while back, but I don't think foreach has anything
to do with it:
template Sequenced(){
template Inner(ThisNode, Value, size_t N){
}
}
struct IndexedBy(L...)
{
alias L List;
}
class MIC(IndexedBy){
alias int ThisNode;
void _RemoveAllBut(size_t N)(ThisNode* node){
}
/// disattach node from all indeces.
alias _RemoveAllBut!(IndexedBy.List.length) _RemoveAll;
}
void main(){
alias MIC!(IndexedBy!(Sequenced!())) C;
}
yields 1 error message:
Error: identifier 'length' of 'IndexedBy.List.length' is not defined
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list