1. The idea
1.1 Graphical representation of a program
1.2 A flat view ?
1.3 A dead end
1.4 Cheating ?
1.4.1 Adding functionality
1.4.2 Object orientation
1.4.3 Fiddling with function pointers
1.5 Context oriented programming
1.5.1 Sharing information within a level
1.5.2 Calling a function from a lower level
1.5.3 Definition of a level or a tree
2. Building blocks
3. Reusing modules in different context
Top Up
Prec

1.4.3 Fiddling with function pointers

Next

This is certainly a solution. Not easier to use. Further, with function pointer, you must find a way to carry context information. The function is called potentially from another function located at the far right of the graph, knowing almost nothing about the application.

One solution to the context problem is the "void pointer" that function pass around so it can be passed to the supplied function which can cast back to the proper type to get the information missing.

Using function pointers certainly work, but requires more care and it forces all the underlying components to pass around this "void *".

Top Up
Prec

Next
One big HTML document