[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ today (was "Re: GTK 1.3.1")



On Fri, 21 Jul 2000, Ilya Khayutin wrote:

> There is a big diffrence between a C++
> class and a C struct: PRIVELEGE CONTROL!! In C
> everyone can directly intefere with any variable in
> the program, same with gtk+ which written in C. In C++
> I can make some variable in a class private or
> protected, and only the methods of this class will be
> able to intefere with it. It makes the code MUCH less
> buggy.

Only if you're writing in the wild west. In most other places, people try
not to shoot themselves in the foot by using undocumented APIs.
(Oh, and yeah right, C++ is type safe. Casts is just some nightmare I had
the other day)

--
Moshe Zadka <moshez@math.huji.ac.il>
There is no GOD but Python, and HTTP is its prophet.
http://advogato.org/person/moshez


=================================================================
To unsubscribe, send mail to linux-il-request@linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request@linux.org.il