-
Notifications
You must be signed in to change notification settings - Fork 38
Treatment of #define #47
Copy link
Copy link
Closed
Labels
Description
From what I can see #define is removed but the values of them are used. So the C code:
define LENGTH 4
char a[LENGTH];
becomes the D code:
char[4] a;
Might it be better to be more careful with these values and create an immutable variable to replace the #define value as would be done in C++.
immutable LENGTH = 4;
char[LENGTH] a;
Reactions are currently unavailable