diff mde/input/exception.d @ 25:2c28ee04a4ed

Some minor and some futile efforts. Played around with init functions, had problems, gave up and put them back. Removed idea for multiple init stages; it's not good for performance or simplicity. Adjusted exception messages. committer: Diggory Hardy <diggory.hardy@gmail.com>
author Diggory Hardy <diggory.hardy@gmail.com>
date Thu, 03 Apr 2008 17:26:52 +0100
parents 5f90774ea1ef
children 611f7b9063c6
line wrap: on
line diff
--- a/mde/input/exception.d	Thu Mar 27 16:15:21 2008 +0000
+++ b/mde/input/exception.d	Thu Apr 03 17:26:52 2008 +0100
@@ -19,10 +19,8 @@
 
 /// Base Input exception class.
 class inputException : mdeException {
-    static const char[] symbol;
-    static this () {	symbol = super.symbol ~ ".input";	}
     char[] getSymbol () {
-        return symbol;
+        return super.getSymbol ~ ".input";
     }
     
     this (char[] msg) {
@@ -32,10 +30,8 @@
 }
 
 class InputClassException : inputException {
-    static const char[] symbol;
-    static this () {	symbol = super.symbol ~ ".input.Input";	}
     char[] getSymbol () {
-        return symbol;
+        return super.getSymbol ~ ".input.Input";
     }
     
     this (char[] msg) {
@@ -45,10 +41,8 @@
 }
 
 class ConfigLoadException : inputException {
-    static const char[] symbol;
-    static this () {	symbol = super.symbol ~ ".config.Config";	}
     char[] getSymbol () {
-        return symbol;
+        return super.getSymbol ~ ".config.Config";
     }
     
     this (char[] msg) {