2 ms·
D also dispenses advice with some errors. I've mostly ran into these when accidentally doing C-style type declarations. e.g. when you try to compile int f
by Doxin 5y ago
D also dispenses advice with some errors. I've mostly ran into these when accidentally doing C-style type declarations. e.g. when you try to compile
int foo[3];
The D compiler will tell you
Error: instead of C-style syntax, use D-style `int[3] foo`
Which makes D positively a delight to learn if you know C already.
- skocznymroczny 5y agoYes, there are some errors designed for people coming over from C. Similarly, (void)somePointer gives you an error saying "instead of C-style cast, use cast(void)somePointer instead".