September 08, 2022 [Issue 8478] Turn some undefined pointer comparisons into compile-time errors | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=8478 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |razvan.nitu1305@gmail.com Resolution|--- |WONTFIX --- Comment #1 from RazvanN <razvan.nitu1305@gmail.com> --- This is system code and system code is allowed to do any kind of weird operations. Imagine that you have pointers to some stack allocated arrays; in this case it makes sense to compare pointers since the array elements are guaranteed to have an order. My opinion is that the type system must allow liberty when it comes to pointers in system code. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply