harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib] using cpp
Date Tue, 21 Feb 2006 14:08:08 GMT
yes, let me refine my position.

I don't object to using the C++ language where it makes sense, e.g. to
simplify things.  IMHO the jaasnix native code's usage is somewhat
gratuitous, and results in a larger binary for no great benefit.

If people want to use vanilla C++ features then sure, but we have to be
mindful of portability problems that would be caused by the areas of C++
that typically vary amongst implementations -- so dependencies on a
particular STL, use of C++ exceptions / RTTI, etc. are all areas asking
for portability trouble in the future.

Regards,
Tim

Paulex Yang wrote:
> Instead of introducing this strict language rule, I suggest to consider
> this restriction case by case with some principles.
> 
> One of the principles should be that our codes can be easily ported to
> as many platforms as possible. Obviously ANSI C has  more compatibility
> on multi platforms and is much easier to support for platform provider
> than C++, and because we have few native codes in classlib written by
> c++ so far,  it's not a bad idea that we consider ANSI C as the first
> choice to implement native codes in classlib.
> 
> And of course, if someday in some cases, the implementation by C++ is
> obviously much better(elegant, simple, high performance, or anything
> else) than counterpart by C, so that the compatibility/complexity issue
> introduced can be ignored, I have no objection to use C++.
> 
> Mikhail Loenko wrote:
>> I'm OK with this change in the jaasnix.
>>
>> As for the whole classlib, I'm afraid that having such a strict
>> language rule at this
>> point might hold some potential contributors.
>>
>> Thanks,
>> Mikhail
>>
>>
>>
>> On 2/14/06, Tim Ellison <t.p.ellison@gmail.com> wrote:
>>  
>>> Alexey Petrenko wrote:
>>>    
>>>> You suggest not to use C++ in Harmony at all?
>>>>       
>>> As Geir says elsewhere, I mean in classlib in particular.
>>>
>>> Regards,
>>> Tim
>>>
>>> -- 
>>>
>>> Tim Ellison (t.p.ellison@gmail.com)
>>> IBM Java technology centre, UK.
>>>
>>>     
>>
>>   
> 
> 

-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Mime
View raw message