[Issue 7133] [tdpl] There should be no empty statement

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Dec 19 06:23:39 PST 2011


http://d.puremagic.com/issues/show_bug.cgi?id=7133


timon.gehr at gmx.ch changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |timon.gehr at gmx.ch


--- Comment #8 from timon.gehr at gmx.ch 2011-12-19 06:23:35 PST ---
(In reply to comment #0)
> The statement ";" should not exist. It is never needed, never useful, and in
> most cases the compiler requires it to be replaced with '{}'.
> 
> Walter and I agreed on all of the above so ";" is not present in TDPL. It
> should be slowly deprecated and ultimately removed from D. It is just junk in
> the trunk.

I think it is useful. This looks odd:

    int    i = 2;
    for({} i<2; i++){}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list