Changeset 56
- Timestamp:
- 12/12/06 18:40:28 (2 years ago)
- Files:
-
- trunk/examples/inherit (added)
- trunk/examples/inherit/inherit.d (added)
- trunk/examples/inherit/readme.txt (added)
- trunk/examples/inherit/setup.py (added)
- trunk/examples/inherit/test.py (added)
- trunk/infrastructure/pyd/class_wrap.d (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/infrastructure/pyd/class_wrap.d
r54 r56 385 385 type.tp_name = (module_name ~ "." ~ name ~ \0).ptr; 386 386 387 // Check for wrapped parent classes 388 static if (is(T B == super)) { 389 foreach (C; B) { 390 static if (is(C == class) && !is(C == Object)) { 391 if (is_wrapped!(C)) { 392 type.tp_base = &wrapped_class_type!(C); 393 } 394 } 395 } 396 } 397 387 398 // Numerical operator overloads 388 399 if (wrapped_class_as_number!(T) != PyNumberMethods.init) {
