Groups | Search | Server Info | Login | Register


Groups > comp.object.corba > #123

Re: [ANN] IDL to C++11 draft revised submission

Message-ID <4F323EF0.8080306@remedy.nl> (permalink)
Date 2012-02-08 10:22 +0100
From Johnny Willemsen <jwillemsen@remedy.nl>
Newsgroups comp.object.corba
Subject Re: [ANN] IDL to C++11 draft revised submission
References <4f30f3fc$0$6949$e4fe514c@news2.news.xs4all.nl> <jgr5ns$1hf$1@dont-email.me>

Show all headers | View raw


Hi,

>> Remedy IT is working on a new IDL to C++11 revised submission. We have
>> published a draft document with a set of examples on our OSportal
>> community site. You can find this online at
>> https://osportal.remedy.nl/projects/idl2cppx0
>>
>
> I currently haven't got the time to look at all this, but one thing I've
> been wondering about the new mapping:
>
> Is the developer (implementer) of an interface / of a client still
> required to use operator `new` at *any* point? Or is it now all wrapped
> up in proper handle-classes?

The sequence is now just mapped to std::vector as returned by value. By 
using the C++11 move semantics you can prevent easily a copy at that moment

> One example: In the old mapping, to have a sequence return value, you
> had something like this:
>
> MyTypeSeq* CC::f() {
> MyTypeSeq_var s(new MyTypeSeq());
> ...
> return s._retn();
> }

All _ptr/_var/_duplicate calls are gone. Argument passing is by value 
for basic types, object references, and enums, all others are passed by 
reference.

> Is there still *any* point in the new mapping where I am required to
> create something on the heap via `new` explicitly?

We have limited it to the minimal, local objects and servants you have 
to create with new and than you transfer ownership to the object 
references. For anything else, it is not required anymore.

Best regards,

Johnny Willemsen
Remedy IT
http://www.theaceorb.nl

Back to comp.object.corba | Previous | NextPrevious in thread | Find similar


Thread

[ANN] IDL to C++11 draft revised submission Johnny Willemsen <jwillemsen@remedy.nl> - 2012-02-07 10:50 +0100
  Re: [ANN] IDL to C++11 draft revised submission "Martin B." <0xCDCDCDCD@gmx.at> - 2012-02-07 13:34 +0100
    Re: [ANN] IDL to C++11 draft revised submission Johnny Willemsen <jwillemsen@remedy.nl> - 2012-02-08 10:22 +0100

csiph-web