Why less emphasis on private data?

Neil Cerutti horpner at yahoo.com
Mon Jan 8 13:57:16 EST 2007


On 2007-01-08, Jussi Salmela <tiedon_jano at hotmail.com> wrote:
> Neil Cerutti kirjoitti:
>> In C one uses the pointer to opaque struct idiom to hide data.
>> For example, the standard FILE pointer.
>
> To Neil Cerutti: If a programmer in C has got a pointer to some
> piece of memory, that piece is at the mercy of the programmer.
> There's no data hiding at all in this case.

That's somewhat disingenuous. You get just as much data hiding
with an opaque data type in C as you get in C++ or Java.

-- 
Neil Cerutti
Potluck supper: prayer and medication to follow. --Church Bulletin Blooper



More information about the Python-list mailing list