On page 134 it is mentioned that a Waker has a manually implemented vtable (which functions similarly to the dynamic dispatch). I think a paragraph or an info box elaborating on why Waker has a vtable would be a beneficial addition to the book. With my limited knowledge I fail to see why a vtable is needed. Is static dispatch not possible?
On page 134 it is mentioned that a
Wakerhas a manually implemented vtable (which functions similarly to the dynamic dispatch). I think a paragraph or an info box elaborating on whyWakerhas a vtable would be a beneficial addition to the book. With my limited knowledge I fail to see why a vtable is needed. Is static dispatch not possible?