www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - C++ static-if; how is it so different?

reply "lobo" <swamplobo gmail.com> writes:
C++17 is looking more and more like D everyday, just with a noisy 
and messy syntax. I found this proposal of interest:

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2015/n4461

Especially this comment in the last paragraph:

 ...since it's not identical or even very similar to the static 
 if in D, ...
I don't quite get this because to me it seems to be simply a subset of the D feature. Also the examples shown are basically how I use the D static-if now. If anyone knows why the proposal claims to be so different from D's static-if (modulo the restrictions mentioned) I'd be interested to know why. Thanks, lobo
Jun 06 2015
parent reply "Dennis Ritchie" <dennis.ritchie mail.ru> writes:
On Sunday, 7 June 2015 at 02:38:57 UTC, lobo wrote:
 If anyone knows why the proposal claims to be so different from 
 D's static-if (modulo the restrictions mentioned) I'd be 
 interested to know why.
http://forum.dlang.org/post/mke22o$2l9i$1 digitalmars.com
Jun 07 2015
parent "lobo" <swamplobo gmail.com> writes:
On Sunday, 7 June 2015 at 09:00:29 UTC, Dennis Ritchie wrote:
 On Sunday, 7 June 2015 at 02:38:57 UTC, lobo wrote:
 If anyone knows why the proposal claims to be so different 
 from D's static-if (modulo the restrictions mentioned) I'd be 
 interested to know why.
http://forum.dlang.org/post/mke22o$2l9i$1 digitalmars.com
Thanks for the link ... I should search before posting :) bye, lobo
Jun 07 2015