Changeset 376

Show
Ignore:
Timestamp:
07/05/08 16:39:43 (5 months ago)
Author:
FeepingCreature
Message:
  • Small hotfix in base
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tools/tools/base.d

    r371 r376  
    856856 
    857857Stuple!(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..$]); 
    859861} 
    860862   
  • trunk/tools/tools/stackthreads.d

    r370 r376  
    7070  T opCall() { routine(); return res; } 
    7171  mixin This!("dg; #New(routine, &run); "); 
    72   /*this(void delegate(void delegate(T)) dg) { 
    73     this.dg = dg; 
    74     New(routine, &run); 
    75   }*/ 
    7672} 
    7773