🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: fr.comp.lang.c
Article #15012

Re: Struct/Union avec les memes champs

#15012
From: Marc Boyer
Date: Wed, 19 Oct 2005 13:26
25 lines
1981 bytes
Le 19-10-2005, Harpo <trashcan@hotmail.com> a �crit�:
> Marc Boyer wrote:
>
>> 
>>   Ca, c'est une vieille m�fiance qui me vient de:
>> unsigned u;
>> assert( u >= 0 ); // UB
>
> Ah bon ???
> Il fallait �crire :
> assert( (signed u) >= -0  || (signed u) <= +0 ); // !! ??
> Pour plus de suret� ?
> C'est dingue !

  Non, c'est que "dans la norme", acc�der � une variable
non initialis�e est un UB.
  On pourrait imaginer un compilateur avec une trap value
par d�faut.
  Enfin bon, moi je r�pette ce qu'Emmanuel et Gabriel
m'ont dit un jour, en esp�rant �tre proche de la v�rit�.

Marc Boyer
-- 
� v�lo, prendre une rue � contre-sens est moins dangeureux
que prendre un boulevard dans le sens l�gal. � qui la faute ?
Technical Details
Message-ID: <slrndlcigg.a9d.Marc.Boyer@localhost.localdomain>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!ciril.fr!univ-lille1.fr!news.cict.fr!not-for-mail
References: <slrndlbo6u.9sr.Marc.Boyer@localhost.localdomain> <4355f8d5$0$623$626a14ce@news.free.fr> <slrndlcdoq.a9d.Marc.Boyer@localhost.localdomain> <435642fd$0$21309$626a54ce@news.free.fr> <slrndlch52.a9d.Marc.Boyer@localhost.localdomain> <435649a0$0$27408$8fcfb975@news.wanadoo.fr>

Show Full Headers
Complete Article Headers
X-Google-Thread: f9822,eb7f26af12505976
X-Google-Attributes: gidf9822,public
X-Google-Language: FRENCH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!ciril.fr!univ-lille1.fr!news.cict.fr!not-for-mail
From: Marc Boyer <Marc.Boyer@enseeiht.yahoo.fr.invalid>
Newsgroups: fr.comp.lang.c
Subject: Re: Struct/Union avec les memes champs
Date: Wed, 19 Oct 2005 13:26:15 +0000 (UTC)
Organization: CICT
Lines: 25
Message-ID: <slrndlcigg.a9d.Marc.Boyer@localhost.localdomain>
References: <slrndlbo6u.9sr.Marc.Boyer@localhost.localdomain> <4355f8d5$0$623$626a14ce@news.free.fr> <slrndlcdoq.a9d.Marc.Boyer@localhost.localdomain> <435642fd$0$21309$626a54ce@news.free.fr> <slrndlch52.a9d.Marc.Boyer@localhost.localdomain> <435649a0$0$27408$8fcfb975@news.wanadoo.fr>
Reply-To: Marc.Boyer@enseeiht.yahoo.fr (del yahoo)
NNTP-Posting-Host: ubu.enseeiht.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.cict.fr 1129728375 16282 147.127.19.155 (19 Oct 2005 13:26:15 GMT)
X-Complaints-To: usenet@news.cict.fr
NNTP-Posting-Date: Wed, 19 Oct 2005 13:26:15 +0000 (UTC)
User-Agent: slrn/0.9.8.1 (Debian)