[Semi OT] Language for Game Development talk

Paulo Pinto via Digitalmars-d digitalmars-d at puremagic.com
Wed Oct 1 15:33:39 PDT 2014


Am 02.10.2014 00:11, schrieb po:
>
>>>  I don't know of any OOP in the STL, unless you mean the 1980's stuff
>>> like iostreams and the other shit most people avoid using, but I don't
>>> think this is considered part of the STL
>>>
>>
>> Any use of a class instance is part of OOP.
>>
>> IOStreams, iterators, strings, containers, ranges, filesytem,
>> networking, graphics, traits
>>
>> Being lazy, and counting its occurrences in comments and when used as
>> instead of typename in templates as well
>>
>> /cygdrive/c/android-sdk/android-ndk/sources/cxx-stl/gnu-libstdc++/4.8/include
>>
>> $ grep -R class * | uniq | wc -c
>> 15601
>>
>> STL is a name that stuck from the old days when it wasn't part of the
>> language. Nowadays it is just the C++ standard library.
>>
>> --
>> Paulo
>
>   According to Stepanov STL author:
>
> http://www.stlport.org/resources/StepanovUSA.html
>
> "Yes. STL is not object oriented. I think that object orientedness is
> almost as much of a hoax as Artificial Intelligence. I have yet to see
> an interesting piece of code that comes from these OO people."
>
>   I'd agree with him, just using a class, because it is the primary
> abstraction in C++, does not make your code OOP.
>
>

Well I disagree with him and can find examples of static and dynamic 
polymorphism, data encapsulation and aggregation everywhere in STL, even 
if he dislikes OO people.

Algorithms is probably the only part that is free of OO concepts.

--
Paulo


More information about the Digitalmars-d mailing list