Forward referencing problem
Fredrik Jonsson
fredrik.jonsson@sea.ericsson.se
Fri, 20 Feb 1998 16:16:22 +0100
On Friday, February 20, 1998 3:27 PM, mbini@dada.it [SMTP:mbini@dada.it]
wrote:
>
> I hope he'll forgive me.
Of course. I'm glad for the result of ordered inclusion because I didn't
know if it was crazy or if it actually was a solution to the problem.
BTW, let me share another idea on IDL programming style. Something
like export control:
---- B.idl ----
// Export all interfaces defined in this file by forwarding at the
// beginning of the file, outside the #ifndef scope
interface B;
#ifndef B_idl
#define B_idl
// Now we can use inclusion again because we know we
// will only bring in forward declarations from the dependency
// file when that file was the originator for the inclusion.
#include <A.idl>
interface B {
A opa();
};
#endif // B_idl
------------------------
--Fredrik Jonsson