Mercurial > projects > ldc
comparison 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 |
comparison
equal
deleted
inserted
replaced
1529:ad7f2f1862d6 | 1530:05c235309d6f |
---|---|
232 virtual int isreal(); | 232 virtual int isreal(); |
233 virtual int isimaginary(); | 233 virtual int isimaginary(); |
234 virtual int iscomplex(); | 234 virtual int iscomplex(); |
235 virtual int isscalar(); | 235 virtual int isscalar(); |
236 virtual int isunsigned(); | 236 virtual int isunsigned(); |
237 virtual int isauto(); | 237 virtual int isscope(); |
238 virtual int isString(); | 238 virtual int isString(); |
239 virtual int checkBoolean(); // if can be converted to boolean value | 239 virtual int checkBoolean(); // if can be converted to boolean value |
240 void checkDeprecated(Loc loc, Scope *sc); | 240 void checkDeprecated(Loc loc, Scope *sc); |
241 Type *pointerTo(); | 241 Type *pointerTo(); |
242 Type *referenceTo(); | 242 Type *referenceTo(); |
690 int isBaseOf(Type *t, int *poffset); | 690 int isBaseOf(Type *t, int *poffset); |
691 MATCH implicitConvTo(Type *to); | 691 MATCH implicitConvTo(Type *to); |
692 Expression *defaultInit(Loc loc); | 692 Expression *defaultInit(Loc loc); |
693 int isZeroInit(Loc loc); | 693 int isZeroInit(Loc loc); |
694 MATCH deduceType(Scope *sc, Type *tparam, TemplateParameters *parameters, Objects *dedtypes); | 694 MATCH deduceType(Scope *sc, Type *tparam, TemplateParameters *parameters, Objects *dedtypes); |
695 int isauto(); | 695 int isscope(); |
696 int checkBoolean(); | 696 int checkBoolean(); |
697 TypeInfoDeclaration *getTypeInfoDeclaration(); | 697 TypeInfoDeclaration *getTypeInfoDeclaration(); |
698 int hasPointers(); | 698 int hasPointers(); |
699 int builtinTypeInfo(); | 699 int builtinTypeInfo(); |
700 #if DMDV2 | 700 #if DMDV2 |