Re: Wiki page: Coming From C++

2015-04-27 Thread Jakob Ovrum via Digitalmars-d
I moved it out of draft status since I think it's respectable enough as it is[1], but improvements and additions should still be made. However, the Coming From pages seem to have been renamed D for X programmers. I don't think this article fits that moniker. From where should we link this

Re: Wiki page: Coming From C++

2015-04-12 Thread anonymous via Digitalmars-d
On Sunday, 12 April 2015 at 03:51:50 UTC, Jakob Ovrum wrote: I can't seem to get the compiler to error on dangling else. I tried the examples in the original PR[1], but they seem to compile without error with DMD 2.067. Is anyone able to make the compiler error on dangling else? [1]

Re: Wiki page: Coming From C++

2015-04-11 Thread David Nadlinger via Digitalmars-d
On Saturday, 11 April 2015 at 10:24:53 UTC, Jakob Ovrum wrote: http://wiki.dlang.org/Coming_From/C_Plus_Plus_WIP_article *Un*signed integer overflow isn't undefined in C/C++ either. — David

Re: Wiki page: Coming From C++

2015-04-11 Thread Jakob Ovrum via Digitalmars-d
On Saturday, 11 April 2015 at 16:02:53 UTC, David Nadlinger wrote: On Saturday, 11 April 2015 at 10:24:53 UTC, Jakob Ovrum wrote: http://wiki.dlang.org/Coming_From/C_Plus_Plus_WIP_article *Un*signed integer overflow isn't undefined in C/C++ either. — David I removed the section on

Re: Wiki page: Coming From C++

2015-04-11 Thread Jakob Ovrum via Digitalmars-d
Thanks for the feedback, I think I've incorporated all the suggested changes. Also added a section on how D deals with object slicing. I can't seem to get the compiler to error on dangling else. I tried the examples in the original PR[1], but they seem to compile without error with DMD

Re: Wiki page: Coming From C++

2015-04-11 Thread ponce via Digitalmars-d
On Saturday, 11 April 2015 at 10:24:53 UTC, Jakob Ovrum wrote: I've done some preliminary work on a wiki page that attempts to convince C++ programmers who are on the fence about D, who need to know what D provides over C++11 and C++14.

Re: Wiki page: Coming From C++

2015-04-11 Thread ponce via Digitalmars-d
You should mention stack variables and members initialized by default. This avoids many release-only bugs. Also: if (cond); // D won't allow that, but C++ will statement(); Almost every C++ programmer encounter this in its carreer.

Re: Wiki page: Coming From C++

2015-04-11 Thread ponce via Digitalmars-d
On Saturday, 11 April 2015 at 11:02:47 UTC, ponce wrote: You should mention stack variables and members initialized by default. This avoids many release-only bugs. Also: if (cond); // D won't allow that, but C++ will statement(); Almost every C++ programmer encounter this in its

Wiki page: Coming From C++

2015-04-11 Thread Jakob Ovrum via Digitalmars-d
I've done some preliminary work on a wiki page that attempts to convince C++ programmers who are on the fence about D, who need to know what D provides over C++11 and C++14. http://wiki.dlang.org/Coming_From/C_Plus_Plus_WIP_article I don't know if a Coming_From page is the right place for

Re: Wiki page: Coming From C++

2015-04-11 Thread Laeeth Isharc via Digitalmars-d
On Saturday, 11 April 2015 at 10:24:53 UTC, Jakob Ovrum wrote: I've done some preliminary work on a wiki page that attempts to convince C++ programmers who are on the fence about D, who need to know what D provides over C++11 and C++14.