Currently,
extern (C)
pragma(crt_constructor) {
void abc() { }
void def() { }
}
fails, while:
extern (C) {
pragma(crt_constructor) {
void abc() { }
}
pragma(crt_constructor) {
void def() { }
}
}
succeeds. This makes no sense. The pragma should behave like every other attribute that affects a block.
Same goes for pragma(crt_destructor)
Comment #1 by robert.schadek — 2024-12-13T19:14:32Z