Mercurial > projects > ldc
diff dmd/aggregate.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 | d9c5f5a43403 |
children | def7a1d494fd |
line wrap: on
line diff
--- a/dmd/aggregate.h Fri Jul 10 21:30:02 2009 +0200 +++ b/dmd/aggregate.h Sun Jul 12 16:15:21 2009 +0200 @@ -222,7 +222,7 @@ ClassInfoDeclaration *vclassinfo; // the ClassInfo object for this ClassDeclaration int com; // !=0 if this is a COM class (meaning // it derives from IUnknown) - int isauto; // !=0 if this is an auto class + int isscope; // !=0 if this is a scope class int isabstract; // !=0 if abstract class int isnested; // !=0 if is nested