Re: sizeof unpadded struct size
- From: Phil Carmody <thefatphil_demunged@xxxxxxxxxxx>
- Date: Wed, 17 Dec 2008 14:13:42 +0200
James Kuyper <jameskuyper@xxxxxxxxxxx> writes:
Phil Carmody wrote:
And as I said later, but you snipped, if all he wants is the sum of
the sizes of the members of the struct, all he needs to do is
sum the sizes of the members of the struct.
I assumed that he wanted a simple way to get that same number without
explicitly performing the sum. I can't see any reason to make any more
complicated assumption, unless and until he says something more
specific about what he wants.
I've needed to do almost precisely what I've mentioned in a RAM-
limited embedded environment. I don't view the assumption that
he might want to be doing the same to be a "more complicated" one.
The situation where one might make use of my construction is in
fact a far _simpler_ one than the situation where one would make
use of yours, if you think about it. Placing an irregular shape
in a grid is far simpler than tessalating it, is it not?
Phil
--
I tried the Vista speech recognition by running the tutorial. I was
amazed, it was awesome, recognised every word I said. Then I said the
wrong word ... and it typed the right one. It was actually just
detecting a sound and printing the expected word! -- pbhj on /.
.
- Follow-Ups:
- Re: sizeof unpadded struct size
- From: James Kuyper
- Re: sizeof unpadded struct size
- References:
- sizeof unpadded struct size
- From: sinbad
- Re: sizeof unpadded struct size
- From: Ian Collins
- Re: sizeof unpadded struct size
- From: Phil Carmody
- Re: sizeof unpadded struct size
- From: James Kuyper
- Re: sizeof unpadded struct size
- From: Phil Carmody
- Re: sizeof unpadded struct size
- From: James Kuyper
- sizeof unpadded struct size
- Prev by Date: Re: get_defined_vars
- Next by Date: Re: sizeof unpadded struct size
- Previous by thread: Re: sizeof unpadded struct size
- Next by thread: Re: sizeof unpadded struct size
- Index(es):
Relevant Pages
|