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)
  • Re: Permissions
    ... You know my original question only required a yes or no. ... There is a reason why people here are reluctant to help you mess up your system. ... I know you are not a developer so the following is too technical, but it is an example of someone messing with something they should not mess with and then they ask for help when they don't realize they are responsible for messing it up. ... So are the rest empty? ...
    (microsoft.public.windows.vista.security)
  • 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)