Mercurial > projects > ldc
comparison dmd/declaration.c @ 1619:c61782a76dff
Merge DMD r304: refactor invariant => immutable
---
dmd/cast.c | 2 +-
dmd/declaration.c | 2 +-
dmd/declaration.h | 3 +--
dmd/doc.c | 2 +-
dmd/expression.c | 6 +++---
dmd/interpret.c | 4 ++--
dmd/mtype.c | 2 +-
dmd/mtype.h | 2 +-
dmd/parse.c | 4 ++--
dmd/struct.c | 2 +-
10 files changed, 14 insertions(+), 15 deletions(-)
author | Leandro Lucarella <llucax@gmail.com> |
---|---|
date | Wed, 06 Jan 2010 15:18:22 -0300 |
parents | 207a8a438dea |
children | fb2e6707ad17 |
comparison
equal
deleted
inserted
replaced
1618:a87f1d6ff48e | 1619:c61782a76dff |
---|---|
138 if (v && v->canassign == 0) | 138 if (v && v->canassign == 0) |
139 { | 139 { |
140 const char *p = NULL; | 140 const char *p = NULL; |
141 if (isConst()) | 141 if (isConst()) |
142 p = "const"; | 142 p = "const"; |
143 else if (isInvariant()) | 143 else if (isImmutable()) |
144 p = "immutable"; | 144 p = "immutable"; |
145 else if (storage_class & STCmanifest) | 145 else if (storage_class & STCmanifest) |
146 p = "enum"; | 146 p = "enum"; |
147 else if (!t->isAssignable()) | 147 else if (!t->isAssignable()) |
148 p = "struct with immutable members"; | 148 p = "struct with immutable members"; |