Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Animats
on Dec 12, 2019
|
parent
|
context
|
favorite
| on:
OMG: Our Machinery Guidebook
Objects as structs with function pointers? 1990 is calling. I'm not a huge C++ fan, but trying to emulate C++ concepts in C is kind of lame at this late date.
bobdobbs666
on Dec 12, 2019
|
next
[–]
This is pretty much the standard way to write ABI compatible plugin interfaces in C that can be easily bound to multiple other languages.
rootlocus
on Dec 12, 2019
|
prev
[–]
Just goes to show C++ failed the zero overhead principle.
Animats
on Dec 12, 2019
|
parent
|
next
[–]
If you don't have virtual functions, a C++ object is just an struct associated with static function links.
cjwoodall
on Dec 15, 2019
|
parent
|
prev
[–]
So sad that it did...
Join us for
AI Startup School
this June 16-17 in San Francisco!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: