Re: About Union's question



Old Wolf wrote:
On Apr 1, 8:40 am, CBFalconer <cbfalco...@xxxxxxxxx> wrote:

.... snip ...

6.5.2.3 Structure and union members

[#5] With one exception, if the value of a member of a union
object is used when the most recent store to the object was
to a different member, the behavior is
implementation-defined.70)

This text is not in C99. I suggest that if you are to use N869
as a reference then you double check things with N1124 before
posting.

Made a note. Hopefully I will get around to checking this and
possibly editing my copy of N869 later.

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>



--
Posted via a free Usenet account from http://www.teranews.com

.



Relevant Pages

  • Re: CBS file " Access denied " after running sfc/scannow
    ... and there is reference to " PROCESSOR_ ARCHITECTURE_AMD64 ". ... b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch ...
    (microsoft.public.windows.vista.performance_maintenance)
  • Re: Advice Needed on Designing a database
    ... just the amount pledged to give - and *not* the amount actually given each ... what if more than one member lives at ... store only one of each, for each member - what about home phones, work ... before creating a database. ...
    (microsoft.public.access.tablesdbdesign)
  • Re: union arrangement
    ... > a union object at any time. ... > with the exception that for representation purposes the members must lie ... > most recent store to the object was to a different member, ...
    (comp.lang.c)
  • Re: finding an index in an STL vector<>
    ... > 'bar' I would just store them all in a static vector and store an index ... these objects, or certain member of these objects, be computed on the fly? ...
    (comp.lang.cpp)
  • Re: My Thought on the "Pickaxe book" (from a Ruby novice)
    ... and member? ... but later decide i need to store multiple values under one key and ... require a special method for storing one value, ... code smell. ...
    (comp.lang.ruby)