title: CORBA: Can a CORBA IDL type be an attribute of another?
body: <p>Before I start using CORBA I want to know something.</p>
  
  <p>It would seem intuitive to me that you could use an IDL type as an attribute of another, which would then expose that attribute's methods to the client application (using ".") as well.</p>
  
  <p>But is this possible?</p>
  
  <p>For example (excuse my bad IDL): </p>
  
  <pre><code>interface Car{ 
        attribute BrakePedal brakePedal; 
        //... 
  }
  
  
  
  //then.. (place above) 
  
  interface BrakePedal{ 
        void press(); 
        //... 
  } 
  
  //... 
  </code></pre>
  
  <p>Then in the client app, you could do: <code>myCar.brakePedal.press();</code> </p>
  
  <p>CORBA would seem crappy if you couldn't do these kind of multi-level 
  object interfaces. After all, real-world objects are multi-level, right? So can 
  someone put my mind at ease and confirm (or try, if you already have CORBA set up) if this definitely works? None of the IDL documentation explicitly shows this in example, which is why I'm concerned. Thanks!</p>