Mercurial > projects > ldc
diff dmd/mtype.h @ 1530:05c235309d6f
Make the auto storage class never have the same meaning as scope.
This changes the meaning of
auto class MyClass {} and
auto MyClass ident;
Both have been made an error to prevent accidents.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sun, 12 Jul 2009 16:15:21 +0200 |
parents | 229e02867307 |
children | def7a1d494fd |
line wrap: on
line diff
--- a/dmd/mtype.h Fri Jul 10 21:30:02 2009 +0200 +++ b/dmd/mtype.h Sun Jul 12 16:15:21 2009 +0200 @@ -234,7 +234,7 @@ virtual int iscomplex(); virtual int isscalar(); virtual int isunsigned(); - virtual int isauto(); + virtual int isscope(); virtual int isString(); virtual int checkBoolean(); // if can be converted to boolean value void checkDeprecated(Loc loc, Scope *sc); @@ -692,7 +692,7 @@ Expression *defaultInit(Loc loc); int isZeroInit(Loc loc); MATCH deduceType(Scope *sc, Type *tparam, TemplateParameters *parameters, Objects *dedtypes); - int isauto(); + int isscope(); int checkBoolean(); TypeInfoDeclaration *getTypeInfoDeclaration(); int hasPointers();