|
|
|
|
|
by WalterBright
346 days ago
|
|
Which would you prefer: struct Tag { ... }
or: typedef struct Tag { ... } Tag;
? It's just simpler and easier to write code in D than in C/C++. For another example, in C/C++: int foo();
int bar() { return foo(); }
int foo() { return 3; }
The D equivalent: int bar() { return foo(); }
int foo() { return 3; }
|
|