Mercurial > projects > ldc
comparison dmd/func.c @ 1282:680b4df0ea36
Commit workaround for TypeFunction comparing issue.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Thu, 30 Apr 2009 23:16:21 +0200 |
parents | 79758fd2f48a |
children | a41a40deff73 |
comparison
equal
deleted
inserted
replaced
1281:29d3861aa2da | 1282:680b4df0ea36 |
---|---|
2082 int FuncDeclaration::isNested() | 2082 int FuncDeclaration::isNested() |
2083 { | 2083 { |
2084 //if (!toParent()) | 2084 //if (!toParent()) |
2085 //printf("FuncDeclaration::isNested('%s') parent=%p\n", toChars(), parent); | 2085 //printf("FuncDeclaration::isNested('%s') parent=%p\n", toChars(), parent); |
2086 //printf("\ttoParent() = '%s'\n", toParent()->toChars()); | 2086 //printf("\ttoParent() = '%s'\n", toParent()->toChars()); |
2087 return ((storage_class & STCstatic) == 0) && | 2087 return ((storage_class & STCstatic) == 0) && toParent2() && |
2088 (toParent2()->isFuncDeclaration() != NULL); | 2088 (toParent2()->isFuncDeclaration() != NULL); |
2089 } | 2089 } |
2090 | 2090 |
2091 int FuncDeclaration::needThis() | 2091 int FuncDeclaration::needThis() |
2092 { | 2092 { |