Mercurial > projects > dil
diff trunk/src/dil/semantic/Symbol.d @ 758:f4b9680c0e16
Revised module dil.SettingsLoader.
author | Aziz K?ksal <aziz.koeksal@gmail.com> |
---|---|
date | Thu, 14 Feb 2008 03:31:19 +0100 |
parents | 8caf18892c1b |
children | c24be8d4f6ab |
line wrap: on
line diff
--- a/trunk/src/dil/semantic/Symbol.d Wed Feb 13 22:08:58 2008 +0100 +++ b/trunk/src/dil/semantic/Symbol.d Thu Feb 14 03:31:19 2008 +0100 @@ -84,6 +84,12 @@ mixin(isX!("OverloadSet")); // mixin(isX!("Type")); + Class to(Class)() + { + assert(mixin(`this.sid == mixin("SYM." ~ typeof(Class).stringof)`)); + return cast(Class)cast(void*)this; + } + /// Returns: the fully qualified name of this symbol. /// E.g.: dil.semantic.Symbol.Symbol.getFQN char[] getFQN()