Re: discussing C evolution



jacob navia wrote:
Ian Collins a écrit :

jacob navia wrote:

Whether this nightmare is acceptable or not is a matter of opinion--
but
it strikes me as a whole new class of nightmare that C never had to
deal
with before. Like anything, C has its strenths and weaknesses and
one of
the strengths has always been the relative lack of nasty surprises.


No surprise here either, if you do not use this feature. Contrary to C++
all this is completely optional. The behavior of old programs and of
programs written not using this features is not affected.


You appear unable of understanding the simple fact that "all this" is
optional in C++ as well.


In another subthread we had this argument already. It is impossible to
dissociate operator overloading from the object oriented framework in
C++. Some operators need a class to be defined, and the implementation
in C++ of operator overloading lacks essential features like
multi-dimensional array indexing, differentiation between read/write
array access and others.

It has been pointed out elsethread that C would require the same baggage
to implement operator overloading. You have to have an object to
operate on! How would yo implement a = b+c on a plain struct without
the means of constructing a temporary object?

The simple point I'm trying to make is you can write C style procedural
code in C++ without any run time support or object related baggage. All
'advanced' features have a cost, paying that cost is the programmer's
choice.

--
Ian Collins.
.



Relevant Pages

  • Re: Java 7 features
    ... of new Java 7 features. ... If operator overloading were being considered in a more general way, ... Addiction to XML signifies the worst possible side of Java, ... to fix their limitations is one thing. ...
    (comp.lang.java.programmer)
  • Re: Operator overloading in C
    ... It features among other enhancements operator overloading. ... Are you saying that because C and C++ are different languages, then their common features must also be slightly different? ... By providing a different syntax for C operator overloading you would prevent code using operator overloading from being compiled in both languages. ... This is a basic language difference, I can't do anything about it. ...
    (comp.std.c)
  • Re: Wishlist for Delphi 10 / 2006
    ... the low level of "features" found in delphi today? ... the language with features like operator overloading. ... >of these canned responses. ...
    (borland.public.delphi.non-technical)
  • Re: Boost process and C
    ... Why should I swallow that big fat language? ... I just want a few specific features that are part of many programming languages, ... Operator overloading is a well known technique, ...
    (comp.lang.c)
  • Re: Could Falcon 9 compete with the Stick?
    ... >> Ed Kyle wrote: ... >> built to government specs, ... include this option, instead reducing the cost. ... features drive the first 90% of the cost, and the last 10% of features ...
    (sci.space.policy)