Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
D (programming language)
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
====Scope lifetime safety==== Initially under the banners of DIP1000<ref>{{Cite web|url=https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1000.md|title=Scoped Pointers|website=[[GitHub]]|date=3 April 2020}}</ref> and DIP25<ref>{{Cite web|url=https://wiki.dlang.org/DIP25|title=Sealed References}}</ref> (now part of the language specification<ref>{{Cite web|url=https://dlang.org/spec/function.html#return-scope-parameters|title=D Language Specification: Functions - Return Scope Parameters}}</ref>), D provides protections against certain ill-formed constructions involving the lifetimes of data. The current mechanisms in place primarily deal with function parameters and stack memory however it is a stated ambition of the leadership of the programming language to provide a more thorough treatment of lifetimes within the D programming language<ref>{{Cite web|url=https://dlang.org/blog/2019/07/15/ownership-and-borrowing-in-d/|title=Ownership and Borrowing in D|date=15 July 2019}}</ref> (influenced by ideas from [[Rust (programming language)|Rust programming language]]).
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)