Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
RhysU
on March 24, 2018
|
parent
|
context
|
favorite
| on:
C for All
I have often wanted c99 with destructors for RAII purposes.
enriquto
on March 24, 2018
[–]
you do not need destructors if you put your stuff on the stack
jcelerier
on March 24, 2018
|
parent
[–]
just putting stuff on the stack in C won't magically call `fclose` or `pthread_mutex_unlock`, unlike destructors
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: