Jeff Wormsley wrote:
I would think any time you have two objects that need bidirectional access of any sort that you would need to define an connector object to make this link, so the data or functions that needs to be shared between the two don't reside in either object, but in the connector object.

The problem at the time was that the BeAPI is C++ and uses multiple inheritance and a lot of the kinds of forward class declarations OP was asking for. The guys were trying to recreate a class for class analog of the API, so changing the API constructs was not an option. The rational was that creating a "new" API would alienate Pascal coders from the greater BeOS development community and would mean that all of the documentation would be useless as reference. This is obviously an edge case though and a self imposed restriction.

M

_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to