Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

My OO...

Name: Anonymous 2011-12-13 3:19

...it's violated!

http://programmers.stackexchange.com/questions/17031/when-c-handles-pop-in-your-c-code-and-break-your-pretty-oo-design

Anime avatar. Passive-aggressive rant. Autismal as fuck. That's gotta be someone from /prague/, amirite?

Name: Anonymous 2011-12-15 20:47

>>58,60
Ah, shit.  I just realized that I misread your example.  You're suggesting something more like this:


int a = 2;
float b = 2.0f;

add(a, b);


And you're right, that would be allowed by any C compiler I've ever used.  Yes, there are special rules for "arithmetic promotion."  It's still misleading to call that dynamic typing, though.  It amounts to some temporary anonymous variables to convert from float to int during the call to the function.  Yeah, believe me, I fully understand how shitty C is.  Still, shitty does not necessarily imply weakly typed.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List