Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[basics/memory] Improve docs #371

Merged
merged 1 commit into from
Aug 4, 2023
Merged

[basics/memory] Improve docs #371

merged 1 commit into from
Aug 4, 2023

Conversation

ntrel
Copy link
Contributor

@ntrel ntrel commented Aug 2, 2023

new T only gives a pointer when T is a value type. GC only collects on a GC allocation by default.
Mention manual collect, disable, enable.
Explain why memory-safe violations are bad.
Mention @trusted functions must have a safe interface.
Add links.

`new T` only gives a pointer when T is a value type.
GC only collects on a GC allocation by default.
Mention manual collect, disable, enable.
Explain why memory-safe violations are bad.
Mention @trusted must have a safe interface.
Add links.
@PetarKirov PetarKirov merged commit f119afa into dlang-tour:master Aug 4, 2023
2 checks passed
@ntrel ntrel deleted the memory branch August 4, 2023 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants