[Issue 23658] New: .di generation of variables should turn them into declarations
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Fri Jan 27 06:50:21 UTC 2023
https://issues.dlang.org/show_bug.cgi?id=23658
Issue ID: 23658
Summary: .di generation of variables should turn them into
declarations
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: bugzilla at digitalmars.com
Currently, generating the .di file for:
int a = 5;
int b;
extern int c;
void foo() { }
void bar();
extern void abc();
results in:
// D import file generated from 'test4.d'
int a = 5;
int b;
extern int c;
void foo();
void bar();
extern void abc();
Note that foo() was turned from a declaration into a definition, but a and b
were not. They should be. This should make .di header generation much better
for DLLs.
--
More information about the Digitalmars-d-bugs
mailing list