Changeset 376
- Timestamp:
- 07/05/08 16:39:43 (5 months ago)
- Files:
-
- trunk/tools/tools/base.d (modified) (1 diff)
- trunk/tools/tools/stackthreads.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/tools/tools/base.d
r371 r376 856 856 857 857 Stuple!(string, string) splitAt(string source, string sep) { 858 return stuple(source[0..source.find(sep)], source[source.find(sep)+sep.length..$]); 858 auto pos = source.find(sep); 859 if (pos == -1) return stuple(source, ""); 860 return stuple(source[0..pos], source[pos+sep.length..$]); 859 861 } 860 862 trunk/tools/tools/stackthreads.d
r370 r376 70 70 T opCall() { routine(); return res; } 71 71 mixin This!("dg; #New(routine, &run); "); 72 /*this(void delegate(void delegate(T)) dg) {73 this.dg = dg;74 New(routine, &run);75 }*/76 72 } 77 73
