[Issue 22335] Exporting variables from DLLs is unusable

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=22335 --- Comment #4 from Max Samukha --- (In reply to Walter Bright from comment #3) > > And your example is now working! Cool, thanks! --

[Issue 9816] Export is mostly broken

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9816 --- Comment #34 from Walter Bright --- > export int a; // declaration => dllimport // fails because it's actually a > definition That's been fixed. --

[Issue 23969] Windows cannot export/import TLS from DLLs

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23969 Dlang Bot changed: What|Removed |Added Keywords||pull --- Comment #1 from Dlang Bot ---

[Issue 9816] Export is mostly broken

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9816 Walter Bright changed: What|Removed |Added CC||bugzi...@digitalmars.com --- Comment #33

[Issue 23969] Windows cannot export/import TLS from DLLs

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23969 Walter Bright changed: What|Removed |Added Summary|TLS in Windows cannot |Windows cannot

[Issue 23970] New: [REG2.097.0] Deprecation not emitted when selectively importing deprecated function

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23970 Issue ID: 23970 Summary: [REG2.097.0] Deprecation not emitted when selectively importing deprecated function Product: D Version: D2 Hardware: All OS: All

[Issue 23968] New: Deprecation not emitted with alias to template function in UFCS

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23968 Issue ID: 23968 Summary: Deprecation not emitted with alias to template function in UFCS Product: D Version: D2 Hardware: All OS: All Status: NEW

[Issue 23969] TLS in Windows cannot export/import TLS from DLLs

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23969 Walter Bright changed: What|Removed |Added Keywords||dll --

[Issue 23969] New: TLS in Windows cannot export/import TLS from DLLs

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23969 Issue ID: 23969 Summary: TLS in Windows cannot export/import TLS from DLLs Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity: normal

[Issue 23969] Windows cannot export/import TLS from DLLs

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23969 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 9816] Export is mostly broken

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9816 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 23969] Windows cannot export/import TLS from DLLs

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23969 --- Comment #2 from Walter Bright --- What Microsoft has to say about it: https://learn.microsoft.com/en-us/cpp/parallel/thread-local-storage-tls?view=msvc-170 TL/DR: exporting TLS from DLLs causes a system crash. --

[Issue 4071] Missing support to share memory and objects between DLLs and executable

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=4071 --- Comment #15 from Rainer Schuetze --- > Rainer's add options -exportall and -sharedlib to dmd That's pretty outdated, here is a reboot: https://github.com/dlang/dmd/pull/14849 --

[Issue 23971] Provide clearer error message when trying to return a slice with C++ linkage

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23971 --- Comment #1 from Marcelo Silva Nascimento Mancini --- Oh yea, the current error message is pretty bad: `cannot return type const(char)[] because its linkage is extern(C++)` --

[Issue 23972] New: class identity check is broken

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23972 Issue ID: 23972 Summary: class identity check is broken Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: major Priority: P1

[Issue 11044] Escaping references to lazy argument are allowed and compile to wrong code

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11044 --- Comment #9 from Vladimir Panteleev --- (In reply to Adam D. Ruppe from comment #7) > lazy lowers to delegate, so it should be easy to just lower to the right > kind of delegate and get correct behavior. Judging from the lazy-related bugs

[Issue 23972] class identity check is broken

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23972 Bolpat changed: What|Removed |Added CC||qs.il.paperi...@gmail.com --

[Issue 23971] New: Provide clearer error message when trying to return a slice with C++ linkage

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23971 Issue ID: 23971 Summary: Provide clearer error message when trying to return a slice with C++ linkage Product: D Version: D2 Hardware: All OS: All

[Issue 23969] Windows cannot export/import TLS from DLLs

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23969 Richard Cattermole changed: What|Removed |Added CC||alphaglosi...@gmail.com --- Comment #3

[Issue 11044] Escaping references to lazy argument are allowed and compile to wrong code

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11044 Vladimir Panteleev changed: What|Removed |Added Status|RESOLVED|REOPENED CC|

[Issue 23973] New: static constructors should have to be nothrow

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23973 Issue ID: 23973 Summary: static constructors should have to be nothrow Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: critical

[Issue 23974] New: A ModuleInfo in a separate Windows DLL should not be referred to by MIimportedModules

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23974 Issue ID: 23974 Summary: A ModuleInfo in a separate Windows DLL should not be referred to by MIimportedModules Product: D Version: D2 Hardware: All OS: Windows

[Issue 23974] A ModuleInfo in a separate Windows DLL should not be referred to by MIimportedModules

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23974 Walter Bright changed: What|Removed |Added Keywords||dll See Also|

[Issue 23177] ModuleInfo is not exported on Windows

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23177 Walter Bright changed: What|Removed |Added See Also||https://issues.dlang.org/sh

[Issue 23974] A ModuleInfo in a separate Windows DLL should not be referred to by MIimportedModules

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23974 --- Comment #3 from Walter Bright --- (In reply to Walter Bright from comment #2) > A module is imported (and outside the binary) when it contains exported > declarations: > > export extern int x = 3; > > export int foo(); Argh, I mean:

[Issue 23850] Differentiate between a module that is in binary vs outside of binary when including -I

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23850 --- Comment #3 from Walter Bright --- Please add the 'dll' keyword when creating an issue about dlls. --

[Issue 14318] Shared library stdio not loaded

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14318 Richard Cattermole changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Issue 23969] Windows cannot export/import TLS from DLLs

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23969 --- Comment #4 from Walter Bright --- Microsoft VC will not compile: __declspec(dllexport) __declspec(thread) int x = 3; --

[Issue 23177] ModuleInfo is not exported on Windows

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23177 Walter Bright changed: What|Removed |Added Keywords||dll --- Comment #12 from Walter Bright ---

[Issue 23850] Differentiate between a module that is in binary vs outside of binary when including -I

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23850 Walter Bright changed: What|Removed |Added Keywords||dll CC|

[Issue 23974] A ModuleInfo in a separate Windows DLL should not be referred to by MIimportedModules

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23974 --- Comment #4 from Richard Cattermole --- (In reply to Walter Bright from comment #2) > A module is imported (and outside the binary) when it contains exported This may not be true. Separate compilation is quite common when creating shared

[Issue 23974] A ModuleInfo in a separate Windows DLL should not be referred to by MIimportedModules

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23974 --- Comment #5 from Walter Bright --- I don't think that is necessary. I fixed the only outstanding .di gen bug I could find in bugzilla. Taking a pile of modules, and randomly assigning some to a DLL and others to the EXE will never work with

[Issue 23974] A ModuleInfo in a separate Windows DLL should not be referred to by MIimportedModules

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23974 Richard Cattermole changed: What|Removed |Added CC||alphaglosi...@gmail.com --- Comment #1

[Issue 23974] A ModuleInfo in a separate Windows DLL should not be referred to by MIimportedModules

2023-06-05 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=23974 --- Comment #2 from Walter Bright --- A module is imported (and outside the binary) when it contains exported declarations: export extern int x = 3; export int foo(); --