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

Pages: 1-

Sepples with structs

Name: Anonymous 2015-03-16 16:43

Every time I see that posted I wonder how that'll work in practice. I'm interested to know if there is any real world example of that in from of a useful library. Filesystem, Graphics, Threads, Algorithms, or whatever is there.
And obviously not a C library,

Name: Anonymous 2015-03-16 17:10

Sepples isn't just classes. Read a book.

Name: Anonymous 2015-03-18 7:42

Sepples structs are implemented as classes with public member access by default.

Name: Anonymous 2015-03-18 8:26

THE FORCED CLASSIFICATION OF STRUCTS

Name: Anonymous 2015-03-18 23:40

The Linux kernel.

Name: Anonymous 2016-06-10 0:03

>>5
Isn't that written in pure GNU C?

Name: Anonymous 2016-06-10 0:37

>>6
pure
GNU
laughinggirls.tiff

Name: Anonymous 2016-06-10 4:40

Why the fuck would anyone using C++ revert to using shittier constructs voluntarily? It's not like you get any performance benefit out of it. In fact it would be slower because you'll end up re-implementing vtables when most compilers don't even use them.

Name: Anonymous 2016-06-10 4:47

>>8
structs are more efficient, dont have vtables and are backward compatible with C. You can also convert any memory area to struct, without caring about contructors/destructors. In other words, stucts are the blunt tool that does the job done.

Name: Anonymous 2016-06-10 4:51

>>9
structs are more efficient, dont have vtables
Any sane, non-toy implementation in C that uses structs will end up having vtables like GObject, often reimplementing dynamic dispatch and "generics" with void*
and are backward compatible with C
Only through self-enforcement. "struct" in C++ has almost the same semantics as "class".
You can also convert any memory area to struct
You can do this in C++ as well with a copy constructor.

Name: Anonymous 2016-06-10 6:18

C = normal boring sex
C++ = BSDM gay sex with scat in the end.

Name: Anonymous 2016-06-10 9:57

Sepples = gasoline enema

FEEL FREE TO LIGHT MY ANUS SEEPLES NIGGERS

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