the only difference is that structs are by default public and clas is
by default private.
but i guess this garbage initially started its life as code to be
"improved" later with c__
Using a type "BOOL" also hints at a confused author.
yeah, somehow vanilla objective c was not enough for them.
they just HAD to use objective c++
with predictable results
4. Alf P. Steinbach
View profile
More options Jan 11, 11:01 am
On 11.01.2012 09:43, AD wrote:
- Show quoted text -
The author of that code mixed up C and C++. The typedef only makes
sense
in C (but the code will not compile as C). The constructor only makes
sense in C++ (but the typedef is meaningless in C++).
c++ is trash not only because of the gawd ugly syntax but because of
the coding style in results in
the resulting black hole of ungawdly maintenance inflicted on
unsuspected continued engineers
Let's not condemn a language just because it's used by at least one
incompetent person.
And let's not condemn that person for wasting others' time,
yeah, except I see the same pattern over and over and over
in all c++ garbage that comes my way: the left hand did not know what
the right one
was doing with disastrous results (the cretin who wrote this
had seen fit to use handmade refcounting
instead of relying on the built in mechanism in NSObject)
Predictably now another person (me) is faced with underrefs & co
in that fragile inconsistent p.o.s.
I'll illustrate the problems with this hack of a language further once
I get another
suitable snippet