[Issue 24890] spec/arrays.dd should mention comparison and warn about dangling .ptr
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Mar 14 23:24:25 UTC 2026
https://issues.dlang.org/show_bug.cgi?id=24890
--- Comment #3 from Dlang Bot <dlang-bot at dlang.rocks> ---
dlang/dmd pull request #22732 "Migrate spec from dlang.org to dmd repository"
was merged into master:
- b8a6f2974d23dae17ef8f944980da64d5dc5d312 by Nick Treleaven:
Fix Bugzilla 24890 - spec/arrays.dd should mention comparison and war…
(#3930)
* Fix Bugzilla 24890 - spec/arrays.dd should mention comparison and warn
about dangling .ptr
Add comparison section.
Introduce .length earlier in the docs.
Define `a == b` and `a is b` for arrays.
Add link to array RelExpression.
Tweak assignment example so comments refer to actual elements.
Make *Array Length* a sub-heading of slicing.
Add relative links for properties.
Document that static array .length is known at compile-time.
Add .ptr section.
Document that .ptr can be dangling so it's not `@safe`.
Mention `TypeInfo.initializer`.
* Remove note about TypeInfo.initializer (not really needed)
* Fix dynamic array .init
https://github.com/dlang/dmd/pull/22732
--
More information about the Digitalmars-d-bugs
mailing list