Callbacks in C++ Using Template Functors – Rich Hickey (1994)
tutok.sk·14h·
Discuss: Hacker News

Copyright 1994 Rich Hickey

INTRODUCTION

One of the many promises of Object-Oriented programming is that it will allow for plug-and-play software design with re-usable components. Designers will pull objects from their library ‘shelves’ and hook them together to make software. In C++, this hooking together of components can be tricky, particulary if they are separately designed. We are still a long way from interoperable libraries and application components. Callbacks provide a mechanism whereby independently developed objects may be connected together. They are vital for plug and play programming, since the likelihood of Vendor A implementing their library in terms of Vendor B’s classes, or your home-brewed classes, is nil.

Callbacks are in wide use, however current impl…

Similar Posts

Loading similar posts...