dmd 1.046 and 2.031 releases

Chad J chadjoan at __spam.is.bad__gmail.com
Mon Jul 6 11:39:08 PDT 2009


Walter Bright wrote:
> grauzone wrote:
>> No. Also, this final switch feature seems to be only marginally
>> useful, and normal switch statements do the same, just at runtime. So
>> much for "more pressing issues" but it's his language and not mine so
>> I'll shut up.
> 
> The final switch deals with a problem where you add an enum member in
> one file and then have to find and update every switch statement that
> uses that enum. There's no straightforward way to find them to ensure
> the case gets added to each switch.
> 
> It's solving a similar problem that symbolic constants do.
> 
> 
> The fall-through thing, though, is purely local and so much less of an
> issue.

huh?

These bugs always take me no less than 2 hours to find, unless I am
specifically looking for fall-through bugs.

They are that evil kind of bug where you can stare at the exact lines of
code that cause it and remain completely clueless until the epiphany
hits.  This is no good, unless the compiler can be rewritten to induce
epiphanies.


"much less of an issue"
T_T


More information about the Digitalmars-d-announce mailing list