tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Small patch


From: Vincent Lefevre
Subject: Re: [Tinycc-devel] Small patch
Date: Thu, 31 Jan 2013 16:14:28 +0100
User-agent: Mutt/1.5.21-6295-vl-r57845 (2013-01-31)

On 2013-01-31 15:56:34 +0100, Michael Matz wrote:
> It will lead to slower and/or larger code to add a default case with a
> separate body.  The current way of doing it is IMO the exactly correct
> way.  If people are really confused by that, put a comment next to the
> 'default:'.

OK (until compilers become smart enough to track possible values
of variables). I would rather see the "case '^'" as a comment
rather than code. Or add a special assert that would be checked
only in some debug mode.

-- 
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]