top | item 40451690

(no title)

schmidt_fifty | 1 year ago

The detail missing from this explanation is that structs and classes are the same thing with different default visibility. I found this enormously confusing when learning the language, and I think it was a major mistake. My assumption was that a struct was exactly the same as a c struct, and the "new" functionality was all a part of the classes.

Still. There's always extern "c".

discuss

order

No comments yet.