Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
arcticbull
on Dec 18, 2021
|
parent
|
context
|
favorite
| on:
I can read C++ and Java but I can’t read Smalltalk...
You can do that, with a structure and a function pointer.
struct a { void (*B)(); } struct a A = { .B = ... }; A.B();
futharkshill
on Dec 18, 2021
[–]
Great example, especially considering op found that he added that example as a mistake :D
Consider applying for YC's W25 batch! Applications are open till Nov 12.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: