Thread overview | |||||
---|---|---|---|---|---|
|
May 23, 2019 [Issue 463] [module] private module members have global bindings instead of local ones | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=463 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |razvan.nitu1305@gmail.com --- Comment #2 from RazvanN <razvan.nitu1305@gmail.com> --- In D2, readelf now outputs WEAK for foo in all the examples in the original bug report. WEAK is like global but the symbol can be overriden. Is there a situation where this is a problem? If not, can we close this? -- |
May 27, 2019 [Issue 463] [module] private module members have global bindings instead of local ones | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=463 RazvanN <razvan.nitu1305@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |WORKSFORME --- Comment #3 from RazvanN <razvan.nitu1305@gmail.com> --- Closing as WORKSFORME. -- |
May 28, 2019 [Issue 463] [module] private module members have global bindings instead of local ones | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=463 --- Comment #4 from anonymous4 <dfj1esp02@sneakemail.com> --- AIU in C local symbols are used to declare functions with the same name in different modules - private functions. They shouldn't override each other and both should be called by their respective modules. They have a pitfall when a public function is inlined and ends up calling private function from a different module, linker rejects such reference to local symbol from a different module. -- |
Copyright © 1999-2021 by the D Language Foundation