My experience has been that having a page instance be mangled in some way to behave like a book is almost always going to be a regrettable coding decision.
What I sometimes do would be to have the page contain a pointer to the book in which it is bound, so that the page can call book level methods. If a page needed to display "page 1 of <total>", it would need to call the book method to find out the total number of pages in the book. It starts getting weird for me if the page class has or inherits book level methods. ymmv Greg On Sun, November 2, 2014 12:03 am, Adam Russell wrote: > I would rather have a "book" have "pages"than just have "pages". Perhaps >>> The approach I took was to define a package LinkedListNode and then a >>> package LinkedList. My idea is that my LinkedList package is a >>> wrapper around the head node which would also define some useful >>> methods such as print_list(), remove_node(), and so forth. _______________________________________________ Boston-pm mailing list [email protected] http://mail.pm.org/mailman/listinfo/boston-pm

