On Monday, 28 July 2025 at 11:06:40 UTC, kinke wrote:
On Sunday, 27 July 2025 at 23:23:40 UTC, user1234 wrote:
That is confusing
It affects the mangling of global vars, just like functions.
ah indeed
On Sunday, 27 July 2025 at 23:23:40 UTC, user1234 wrote:
That is confusing
It affects the mangling of global vars, just like functions.
On Sunday, July 27, 2025 5:23:40 PM Mountain Daylight Time user1234 via
Digitalmars-d-learn wrote:
> That is confusing, e.g
>
> ```
> extern(C) int r;
>
> int main()
> {
> return r;
> }
> ```
>
> works. But what is likely more intended here is
>
> ```
> extern int r;
>
> int main()
> {
>
That is confusing, e.g
```
extern(C) int r;
int main()
{
return r;
}
```
works. But what is likely more intended here is
```
extern int r;
int main()
{
return r;
}
```
which leads, this time, to the expected linker error.