diff mde/lookup/Options.d @ 102:ba035eba07b4

Compilation fixes for windows and unittest code.
author Cyborg16@cyborg64-win.lan
date Sat, 22 Nov 2008 20:59:36 +0000
parents 71f0f1f83620
children 42e241e7be3e
line wrap: on
line diff
--- a/mde/lookup/Options.d	Sun Nov 16 17:03:47 2008 +0000
+++ b/mde/lookup/Options.d	Sat Nov 22 20:59:36 2008 +0000
@@ -251,7 +251,7 @@
      * Due to the way options are handled generically, string IDs must be used to access the options
      * via hash-maps, which is a little slower than direct access but necessary since the option
      * must be changed in two separate places. */
-    void set(T) (char[] symbol, T val) {
+    /+deprecated void set(T) (char[] symbol, T val) {
         static assert (TIsIn!(T,TYPES) && !TIsIn!(T, CTYPES), "Options.set does not support type "~T.stringof);
         
         changed = true;     // something got set (don't bother checking this isn't what it already was)
@@ -263,12 +263,12 @@
             // log and ignore:
             logger.error ("Options.set: invalid symbol");
         }
-    }
+    }+/
     /+
     /** Get option symbol of an Options sub-class.
      *
      * Using this method to read an option is not necessary, but allows for generic use.  */
-    T get(T) (char[] symbol) {
+    deprecated T get(T) (char[] symbol) {
         static assert (TIsIn!(T,TYPES), "Options does not support type "~T.stringof);
         
         mixin (`alias opts`~TName!(T)~` optsVars;`);
@@ -282,7 +282,7 @@
     }+/
     
     /** List the names of all options of a specific type. */
-    char[][] list () {
+    deprecated char[][] list () {
         char[][] ret;
         mixin (listMixin!(TYPES));
         return ret;