May 2014
Beginner
1312 pages
38h 36m
English
“When you finally understandwhat you are doing,things will go right.”
—Bill Fairbank
This appendix presents implementation details of callbacks, Window, Widget, and Vector_ref. In Chapter 16, we couldn’t assume the knowledge of pointers and casts needed for a more complete explanation, so we banished that explanation to this appendix.
We implemented callbacks like this:
void Simple_window::cb_next(Address, Address addr) // call Simple_window::next() for the window located at addr { reference_to<Simple_window>(addr).next(); ...