View mode: basic / threaded / horizontal-split · Log in · Help
November 28, 2008
Two C99 features
In C99 there are two features that may be useful in D programs too:

1) The restrict keyword:

2) And the stack allocated variable-length arrays (that reduce most of the need for alloca() and can be used for small arrays):
This is less necessary in D because it has built-in dynamic arrays, but for small arrays it can be useful, as a performance optimization feature.

Are there proposals of adding them to D?

Top | Discussion index | About this forum | D home