Re: What is a union?
- From: "Mark Randall" <markyr@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 26 Apr 2005 14:01:39 +0100
You seem to have missed out the comment at the bottom regarding the 1k of
RAM, while a clear underestimate - it was there to say that they do have
their points...
But not in 99.99% of cases where RAM is a penny for a MB.
--
- Mark Randall
http://zetech.swehli.com
"Severian [MVP]" <severian@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:hs6r61dinsptb4esqtvhs0ufhl4j2c09m0@xxxxxxxxxx
> On Tue, 26 Apr 2005 02:02:50 +0100, "Mark Randall"
> <markyr@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>
>>>George Hester" <hesterloli@xxxxxxxxxxx> wrote:
>>> Since I am not sure what union is doing I'm not sure how to address
>>> this.
>>> Thanks.
>>> This is done with Visual Studio 6 SP5
>>
>>A union is a prehistoric structure that contains various different data
>>types, but only one of them at once. Used for super-efficent (and
>>nowerdays
>>rediculous) memory usage.
>
> You seem to assume that all programmers are currently working on
> machines with gigabytes of ram, but there are many other platforms
> than the desktop and server.
>
> C and C++ are used in very many enviroments. In many of them, unions
> are quite useful for saving memory.
>
> In other cases, such as machine-specific code, they can be useful for
> looking at the same data in different ways.
>
> --
> Phillip Crews aka Severian
> Microsoft MVP, Windows SDK
> Posting email address is real, but please post replies on the newsgroup.
.
- Follow-Ups:
- Re: What is a union?
- From: Severian [MVP]
- Re: What is a union?
- References:
- What is a union?
- From: George Hester
- Re: What is a union?
- From: Mark Randall
- Re: What is a union?
- From: Severian [MVP]
- What is a union?
- Prev by Date: Re: Make stronger protection for your software products
- Next by Date: Re: Make stronger protection for your software products
- Previous by thread: Re: What is a union?
- Next by thread: Re: What is a union?
- Index(es):
Relevant Pages
|
Loading