On 9/24/10 10:56 CDT, lurker wrote:
Andrei Alexandrescu Wrote:

On 9/23/10 22:59 CDT, Walter Bright wrote:
Jonathan M Davis wrote:
I don't really mind it how it is, but I've known plenty of programmers
who hated the fallthrough behavior in other languages. So, it would
likely be a good change to make.

I'm probably alone in this, but I've always liked the C behavior and
never had a problem with it. It's probably from my asm days, as it works
just like labeled asm statements do.

Well admitting you're alone in this is the first step to recovery :o).

Andrei

He's not alone with his view. The automatic implicit porting of C code is an 
important feature - D should work even more like C than it does now. The syntax 
could also make use of a revamp, we have 'pure' and 'const' and so forth, in C 
those are __attribute__((pure)) and similar kind of conventions. The C approach 
saves keywords for actual code.

Preventing implicit fall-through is unlikely to affect large portions of C code, and will never compile programs with different semantics.

Andrei

Reply via email to