Changeset 381
- Timestamp:
- 07/05/08 17:17:07 (5 months ago)
- Files:
-
- trunk/tools/tools/base.d (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/tools/base.d
r380 r381 884 884 return res; 885 885 } 886 mixinswitchMode!("_startIncl", "from", true) startIncl;887 mixinswitchMode!("_startIncl", "from", false) startExcl;888 mixinswitchMode!("_endExcl", "to", false) endIncl;889 mixinswitchMode!("_endExcl", "to", true) endExcl;886 alias switchMode!("_startIncl", "from", true) startIncl; 887 alias switchMode!("_startIncl", "from", false) startExcl; 888 alias switchMode!("_endExcl", "to", false) endIncl; 889 alias switchMode!("_endExcl", "to", true) endExcl; 890 890 size_t length() { return to-from; } 891 891 T opIndex(size_t where) { return from+cast(T) where; } … … 1099 1099 mustEqual("BoolSetTestOr", 2 /or/ 3 == 3, true); 1100 1100 mustEqual("BoolSetTestAnd", AndSet(2, 3) == 3, false); 1101 mustEqual("RangeInclTest", 5 in Range[2..5].endIncl, true); 1101 1102 } 1102 1103
