Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pokeymcsnatch
· 3y ago · 0 comments
structs?
Comments
[–]
JohnFen
3y ago
That's how I did it before C++ existed. Structs with pointers to functions (which is conceptually what C++ classes are).
[–]
pokeymcsnatch
OP
3y ago
Yarp, I do the same. It's rudimentary but works fine and the code is clean enough if you pick a couple conventions (starting "private" variables with an underscore for example) and stick with them.