Mercurial > projects > ldc
changeset 506:a6c105aa00d5
Provided overload to TypeClass::builtinTypeInfo to return true.
Shouldn't almost all types have a builtin typeinfo? Maybe it'd be better to
have the default at true and only overload typedef and friends.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 13 Aug 2008 22:14:43 +0200 |
parents | 841589c97f20 |
children | 39dbe48d3fe2 |
files | dmd/mtype.h gen/typinf.cpp |
diffstat | 2 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/dmd/mtype.h Wed Aug 13 20:50:54 2008 +0200 +++ b/dmd/mtype.h Wed Aug 13 22:14:43 2008 +0200 @@ -640,6 +640,7 @@ int checkBoolean(); TypeInfoDeclaration *getTypeInfoDeclaration(); int hasPointers(); + int builtinTypeInfo(); type *toCtype();
--- a/gen/typinf.cpp Wed Aug 13 20:50:54 2008 +0200 +++ b/gen/typinf.cpp Wed Aug 13 22:14:43 2008 +0200 @@ -224,6 +224,11 @@ return next->isTypeBasic() != NULL; } +int TypeClass::builtinTypeInfo() +{ + return 1; +} + /* ========================================================================= */ /***************************************