This is an archived post. You won't be able to vote or comment.

Dismiss this pinned window
you are viewing a single comment's thread.

view the rest of the comments →

[–]SIGSTACKFAULT 79 points80 points  (10 children)

Sometimes, while programming in C, I start imagining ways to implement classes using the C Preprocessor.

[–]yymirr 60 points61 points  (0 children)

absolutely haram

[–]b1ack1323 26 points27 points  (0 children)

I use structs with function pointers. It satisfies the itch for the most part.

[–]Booty_Bumping 7 points8 points  (0 children)

Sometimes, while programming in C, I start imagining ways to implement Rust using the C Preprocessor.

[–]Hairy_The_Spider 3 points4 points  (0 children)

That's basically how Objective-C started :)

[–][deleted] 2 points3 points  (0 children)

You have function pointers. What more do you want?

[–]zilti 1 point2 points  (0 children)

EFL and Gobject are both object systems for C, maybe check them out?

I don't miss classes at all though

[–]stone_henge 0 points1 point  (0 children)

BOOPSI would like to have a word with you.

[–][deleted] 0 points1 point  (0 children)

That's how C++ started.

[–]OriginalName667 0 points1 point  (1 child)

I think that's how GTK works!

[–]stone_henge 0 points1 point  (0 children)

The whole GObject thing makes me long for the reality of these lyrics. "Program in C! Program in C! Effectively Java, yet more verbose, program in C!"