From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-1.sys.kth.se (smtp-1.sys.kth.se [130.237.32.175]) by krisdoz.my.domain (8.14.3/8.14.3) with ESMTP id o92A5F9S019765 for ; Sat, 2 Oct 2010 06:05:16 -0400 (EDT) Received: from mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 14E39157AB7 for ; Sat, 2 Oct 2010 12:05:10 +0200 (CEST) X-Virus-Scanned: by amavisd-new at kth.se Received: from smtp-1.sys.kth.se ([130.237.32.175]) by mailscan-1.sys.kth.se (mailscan-1.sys.kth.se [130.237.32.91]) (amavisd-new, port 10024) with LMTP id a0toa8-Z0Hri for ; Sat, 2 Oct 2010 12:05:08 +0200 (CEST) X-KTH-Auth: kristaps [85.8.60.161] X-KTH-mail-from: kristaps@bsd.lv X-KTH-rcpt-to: tech@mdocml.bsd.lv Received: from lappy.cust.alltele.se (h85-8-60-161.dynamic.se.alltele.net [85.8.60.161]) by smtp-1.sys.kth.se (Postfix) with ESMTP id 69939157AB3 for ; Sat, 2 Oct 2010 12:05:07 +0200 (CEST) Message-ID: <4CA703EC.9060508@bsd.lv> Date: Sat, 02 Oct 2010 12:05:32 +0200 From: Kristaps Dzonsons User-Agent: Thunderbird 2.0.0.23 (X11/20100318) X-Mailinglist: mdocml-tech Reply-To: tech@mdocml.bsd.lv MIME-Version: 1.0 To: tech@mdocml.bsd.lv Subject: First enum value defaults to zero? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Question for C-standard experts. Are initial enum entities guaranteed to be zero? I understand the monotonicity is preserved (if it's not...), but can I blast the "= 0" scattered throughout our enums? enum foo { I_HATE_DOING_THIS = 0, BLAH... }; Kristaps -- To unsubscribe send an email to tech+unsubscribe@mdocml.bsd.lv