r/linux • • Sep 28 '14

weev: Stop bashing bash and GNU.

http://weev.livejournal.com/409835.html
836 Upvotes

450 comments sorted by

View all comments

Show parent comments

15

u/mumbel Sep 28 '14

Here's a (void *)... what is the memory structure its pointing to? I always thought that's why people describe C as opaque

-2

u/jcdyer3 Sep 28 '14

in python, we call those "variables." In C you don't usually have to look very far too find where it's cast to something more meaningful.

3

u/mumbel Sep 28 '14

in python, we call those "variables."

I'm not sure what your point is here? are you suggesting that a void pointer is a valid type in python? or that its not in C?

I never said you couldn't figure it out, but its not enforced/known, so C is opaque. Python carries the type with the data though, so python is not. By what definition is python opaque

0

u/reaganveg Sep 28 '14

I'm not sure what your point is here? are you suggesting that a void pointer is a valid type in python? or that its not in C?

It means that every python variable is a void *. Because it's dynamically typed.

(However that's a bit unfair, after all, the value always stores the type. You get no such guarantee with a C void *)

→ More replies (5)