Changeset 284
- Timestamp:
- 04/14/10 15:17:12 (2 years ago)
- Files:
-
- trunk/import/object.di (modified) (4 diffs)
- trunk/src/core/runtime.d (modified) (1 diff)
- trunk/src/core/thread.d (modified) (2 diffs)
- trunk/src/object_.d (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/import/object.di
r278 r284 245 245 @property void function() unitTest(); 246 246 247 static int opApply( int delegate(ref ModuleInfo*));247 static int opApply(scope int delegate(ref ModuleInfo*)); 248 248 } 249 249 … … 258 258 interface TraceInfo 259 259 { 260 int opApply( int delegate(ref char[]));260 int opApply(scope int delegate(ref char[])); 261 261 string toString(); 262 262 } … … 300 300 void* _aaRehash(void** pp, TypeInfo keyti); 301 301 302 extern (D) typedef int delegate(void *) _dg_t;302 extern (D) typedef scope int delegate(void *) _dg_t; 303 303 int _aaApply(void* aa, size_t keysize, _dg_t dg); 304 304 305 extern (D) typedef int delegate(void *, void *) _dg2_t;305 extern (D) typedef scope int delegate(void *, void *) _dg2_t; 306 306 int _aaApply2(void* aa, size_t keysize, _dg2_t dg); 307 307 … … 333 333 } 334 334 335 int opApply( int delegate(ref Key, ref Value) dg)335 int opApply(scope int delegate(ref Key, ref Value) dg) 336 336 { 337 337 return _aaApply2(p, Key.sizeof, cast(_dg2_t)dg); 338 338 } 339 339 340 int opApply( int delegate(ref Value) dg)340 int opApply(scope int delegate(ref Value) dg) 341 341 { 342 342 return _aaApply(p, Key.sizeof, cast(_dg_t)dg); trunk/src/core/runtime.d
r283 r284 261 261 } 262 262 263 int opApply( int delegate(ref char[]) dg )263 int opApply( scope int delegate(ref char[]) dg ) 264 264 { 265 265 // NOTE: The first 5 frames with the current implementation are trunk/src/core/thread.d
r263 r284 1158 1158 * Zero if all elemented are visited, nonzero if not. 1159 1159 */ 1160 static int opApply( int delegate( ref Thread ) dg )1160 static int opApply( scope int delegate( ref Thread ) dg ) 1161 1161 { 1162 1162 synchronized( slock ) … … 2422 2422 * Operates on all threads currently tracked by this object. 2423 2423 */ 2424 final int opApply( int delegate( ref Thread ) dg )2424 final int opApply( scope int delegate( ref Thread ) dg ) 2425 2425 { 2426 2426 synchronized( this ) trunk/src/object_.d
r270 r284 1122 1122 interface TraceInfo 1123 1123 { 1124 int opApply( int delegate(ref char[]));1124 int opApply(scope int delegate(ref char[])); 1125 1125 } 1126 1126 … … 1565 1565 1566 1566 1567 static int opApply( int delegate(ref ModuleInfo*) dg)1567 static int opApply(scope int delegate(ref ModuleInfo*) dg) 1568 1568 { 1569 1569 int ret = 0; … … 2079 2079 void* _aaRehash(void** pp, TypeInfo keyti); 2080 2080 2081 extern (D) typedef int delegate(void *) _dg_t;2081 extern (D) typedef scope int delegate(void *) _dg_t; 2082 2082 int _aaApply(void* aa, size_t keysize, _dg_t dg); 2083 2083 2084 extern (D) typedef int delegate(void *, void *) _dg2_t;2084 extern (D) typedef scope int delegate(void *, void *) _dg2_t; 2085 2085 int _aaApply2(void* aa, size_t keysize, _dg2_t dg); 2086 2086 … … 2112 2112 } 2113 2113 2114 int opApply( int delegate(ref Key, ref Value) dg)2114 int opApply(scope int delegate(ref Key, ref Value) dg) 2115 2115 { 2116 2116 return _aaApply2(p, Key.sizeof, cast(_dg2_t)dg); 2117 2117 } 2118 2118 2119 int opApply( int delegate(ref Value) dg)2119 int opApply(scope int delegate(ref Value) dg) 2120 2120 { 2121 2121 return _aaApply(p, Key.sizeof, cast(_dg_t)dg);
