Re: pointer to void property



"Old Wolf" <oldwolf@xxxxxxxxxxxxxx> wrote in message
news:1126566243.859723.271250@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Irrwahn Grausewitz wrote:
> >
> > If it's safe to convert a p-to-sometype to p-to-void, AND it's safe
> > to convert a p-to-void to p-to-char, THEN it's safe to convert a
> > p-to-int to p-to-void to p-to-char.
> >
> > What a typing mess...
>
> The OP's original question was (rephrased):
>
> Can this p-to-char be used to access the representation of the
> "sometype" that p-to-sometype was pointing to?
>
> which doesn't seem to have been answered yet on this thread
> (everyone was distracted by the casting issue). I'm not sure
> of the answer personally.
>

Well, even if you do so, you would have to account for (ie: guess) byte
alignments that might change between compiler versions, or CPU changes
(32bit vs 64bit currently), or OS changes (versions), or OS changes
(endian issues), or OS changes (devices like PDAs), or OS changes (you
get the idea).

--
Mabden


.



Relevant Pages

  • Re: pointer to void property
    ... > What a typing mess... ... The OP's original question was: ... Can this p-to-char be used to access the representation of the ...
    (comp.lang.c)
  • back from er sigh.....
    ... doorway onto concrete carport pad. ... typing 1 handed. ... left wrist a mess. ...
    (alt.support.arthritis)
  • Re: back from er sigh.....
    ... > doorway onto concrete carport pad. ... typing 1 handed. ... left wrist a mess. ...
    (alt.support.arthritis)
  • Re: pointer to void property
    ... >The OP's original question was: ... if this is still valid when the p-to-char ... was not converted directly from the pointer to the original object, ... the same representation and alignment requirements. ...
    (comp.lang.c)
  • Re: ALL Is OLTL now the best soap on the air?
    ... In answer to the original question, is OLTL at the top of its game...yes ... airing right now is kind of "RC cleaning up a mess he was left with Part ...
    (rec.arts.tv.soaps.abc)