[SAOC 2026] ImportC Weekly Update #8
AndyC
andy at squeakycode.net
Sat Nov 14 16:50:30 UTC 2026
On Saturday, 14 November 2026 at 12:48:28 UTC, Niyati Jain wrote:
> With this week, Milestone 2 comes to an end.
>
> Two more small fixes done this week include
> [#24231](https://github.com/dlang/dmd/pull/24231)
> (`__alignof__`/`__const__` weren't recognized) and
> [#24232](https://github.com/dlang/dmd/pull/24232)
> (`typeof(func)` was resolving to a variable instead of a
> function).
>
>
> Any feedback or suggestion is highly welcomed.
>
> Best,
> Niyati
Hi Niyati.
Thanks for working on this, it has been very useful to me. The
"__const__" in your message, for some reason, made me remember I
did run into a tiny issue (which doesn't bother me at all) using
journalctl.
If my .c file contains just:
```C
#include <systemd/sd-journal.h>
```
Using: DMD64 D Compiler v2.113.0
I get:
```
/usr/include/systemd/sd-id128.h(38): Error: static array
parameters are not supported
char* sd_id128_to_string(sd_id128_t id, char s[static 33U]);
^
/usr/include/systemd/sd-id128.h(39): Error: static array
parameters are not supported
char* sd_id128_to_uuid_string(sd_id128_t id, char s[static 37U]);
```
This isn't a problem, I just copied the very few functions I
wanted from the .h and paste them into my .c, and it builds and
runs fine.
I've import other .h files and not had any problems, works great!
Thanks again
-Andy
More information about the Digitalmars-d
mailing list