Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
winrid
on Nov 3, 2022
|
parent
|
context
|
favorite
| on:
Next C compiler is a D compiler: Introducing DMD's...
Can you tell the D compiler to free a pointer returned from a C method when it goes out of scope? Like uniq_ptr
boundchecked
on Nov 3, 2022
|
next
[–]
D has scopeguards similar to defer.
WalterBright
on Nov 3, 2022
|
prev
[–]
D can do RAII.
germandiago
on Nov 3, 2022
|
parent
[–]
via structs, right? As for classes you should not rely on it I recall.
pjmlp
on Nov 3, 2022
|
root
|
parent
[–]
You can stack allocate classes, and then they behave like structs.
https://dlang.org/blog/2017/07/07/go-your-own-way-part-one-t...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: