[Issue 24216] All symbols from object are publicly imported into every module

2023-11-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24216 --- Comment #4 from Steven Schveighoffer --- FWIW, this was found in discord by someone asking what `std.stdio.string` is. So it's not just std.math. I just picked std.math as something I thought would likely not be dealing with `string`. But I als

[Issue 24216] All symbols from object are publicly imported into every module

2023-11-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24216 --- Comment #3 from Adam D. Ruppe --- OK, this gets weirder and weirder. Make three modules: mod.d ``` import mod2; import std.math; void main() { string[int] x; // mod2.Object lol = mod2.require(x, 5); mod2.bar test = mod2

[Issue 24216] All symbols from object are publicly imported into every module

2023-11-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24216 --- Comment #2 from Steven Schveighoffer --- Please post examples to confirm. I tried this, and it compiles, so it's not just types: ```d import std.math; void main() { int[int] x; std.math.require(x, 5) = 6; } ``` --

[Issue 24216] All symbols from object are publicly imported into every module

2023-11-01 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=24216 Adam D. Ruppe changed: What|Removed |Added CC||destructiona...@gmail.com --- Comment #1 fro