[erlang-questions] CORBA recursive types

Niclas Eklund <>
Tue Dec 21 16:54:12 CET 2010


Hi!

I'd like to quote Mark Twain:

  - "The reports of my death are greatly exaggerated!"

Orber/CORBA is very much alive and kicking, but you probably see it more 
often in Telco OaM apps (Google for - 3gpp CORBA). Since these are based 
on standard IDL API:s, the need for adding support for some types isn't 
that great.

It should be rather straight forward to add valuetype. I.e. mimic 
interface inheritance. The TypeCode struct member list in the genrated 
Derived.erl module should contain the atom 'Base', so that that module's 
tc() function would be invoked/used when decoding/encoding an instance of 
Derived. The IFR also needs to be updated (the Light version is 
sufficient) since valuetype is a new data type. This means that there are 
some other modules that must be updated besides those in the git commit.

It would be interesting to hear about the major obstacle you think 
valuetype would solve.

Niclas E @ Erlang/OTP


On Tue, 21 Dec 2010, Rudolph van Graan wrote:

> Ah Brilliant! I was beginning to fear that CORBA is a dying project. Any 
> idea how one can go about supporting the valuetype construct? I am 
> willing to help out if somebody can give me a few pointers on where what 
> needs to be done.
>
>> valuetype Base {
>>   long    some_data;
>> };
>>
>> valuetype  Derived : Base {
>>   long    more_data;
>> };
>
> The reason for this request is that valuetype enables the re-use for 
> structs, i.e. in some kind of inheritance scheme and that solves one 
> major obstacle.
>
> Thanks
>
> Rudolph van Graan
>
>
>
> On Dec 21, 2010, at 11:45 AM, Niclas Eklund wrote:
>
>>
>> Hello!
>>
>> Since the question has been asked previously on this list, I'd like to 
>> inform that IC and Orber now support recursive types (union and struct) 
>> for the CORBA backend:
>>
>> https://github.com/erlang/otp/commit/1de445e76dee4e9473eadf7f6bd0dcb26a295a64
>>
>> For more information, see chapter "OMG IDL to Erlang Mapping" in the User's Guide.
>>
>> Happy Holidays!
>>
>> Niclas E @ Erlang/OTP
>>
>> ________________________________________________________________
>> erlang-questions (at) erlang.org mailing list.
>> See http://www.erlang.org/faq.html
>> To unsubscribe; mailto:
>>
>
>




More information about the erlang-questions mailing list