Guest User

Untitled

a guest
Apr 26th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. class StorableShape : Shape {
  2. private class MyDBObject : DBObject {
  3. override void saveState() {
  4. // access DBObject and StorableShape
  5. . . .
  6. }
  7. }
  8. private MyDBObject _store;
  9. alias _store this;
  10. this( ) {
  11. // Here’s the crucial point where the link is made
  12. _store = this. new MyDBObject;
  13. }
  14. . . .
  15. }
Add Comment
Please, Sign In to add comment