[prev in list] [next in list] [prev in thread] [next in thread]
List: omniorb-list
Subject: RE: Forward referencing problem
From: Fredrik Jonsson <fredrik.jonsson () sea ! ericsson ! se>
Date: 1998-02-20 15:16:22
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic