الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

الإصدارة الجديدة من ++C

مغلق
بدأه OMLX في 4 يناير 2006 · 2 رد · 1,259 مشاهدة · في لغة C و ++C
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

السلام عليكم

اليوم وقع نظري على مقالة مكتوبة يوم 2 يناير 2006م للمخترع Bjarne Stroustrup وهو لمن لا يعرفه مصمم اللغة ++C

طبعا كانت المقالة نظرة أولية للإصدارة القادمة من السي ++ ، والتي سماها C++0x

طبعا هو يأمل أن تحقق النتائج التالية:

The high level aims for the language part of C++0x are to:

    * Make C++ a better language for systems programming and library building
          o Rather than providing specialized facilities for a particular sub-community (e.g., numeric computation or Windows-style application development) 
    * Make C++ easier to teach and learn
          o Through increased uniformity, stronger guarantees, and facilities supportive of novices

ومن ضمن الاشياء التي ستحسن في السي ++ :

The C++0x improvements should be done in such a way that the resulting language is easier to learn and use. Among the rules of thumb for the committee are:

    * Provide stability and compatibility (with C++98, and, if possible, with C)
    * Prefer standard library facilities to language extensions
    * Make only changes that change the way people think
    * Prefer generality to specialization
    * Support both experts and novices
    * Increase type safety (by providing safe alternatives to currently unsafe facilities)
    * Improve performance and ability to work directly with hardware
    * Fit into the real world

المقالة جميلة جدا ،،

للمزيد تابعها من هذا الرابط :
http://www.artima.com/cppsource/cpp0xP.html

تم تعديل هذه المشاركة بواسطة مصطفى 36a2 في 18 أبريل 2014 في 19:08 — السبب: add some tags

1
#2

كيف سيمكن زيادة الـ uniformity مع المحافظة على الـ backward compatibility؟! اعتقد ان الأمر مستحيل!

طبعا تعرفون ماذا اريد ان اقول ;) بس مش حقول خلاص اصلي ذبحتكم فيها :lol:

#3
template<class T> using Vec = vector<T,My_alloc<T>>;
Vec<double> v = { 2.3, 1.2, 6.7, 4.5  };
sort(v);
for(auto p = v.begin(); p!=v.end(); ++p)
    cout << *p << endl;

اقتباس
The ability to define such aliases and to bind some but not all parameters of a template has been missing from C++.
اقتباس
auto means “deduce the type of the declared variable from the initializer”.

:)

Good Article

Muhammad Allam

Computer Science

@Resource(MappedURL="My Blog" )

هذا الموضوع مغلق.

مواضيع مشابهة