[Info-vax] Dave Cutler, Prism, DEC, Microsoft, etc.

Richard Brodie R.Brodie at rl.ac.uk
Tue Dec 1 06:10:57 EST 2009


"JF Mezei" <jfmezei.spamnot at vaxination.ca> wrote in message 
news:00cd4d03$0$6691$c3e8da3 at news.astraweb.com...

> if I have a 100 byte record, and bytes 7 though 10 inclusively contain
> an integer, and I do:
>
> myint = (int *) &(buffer + 6) ; /* hopefully I have the syntax right*/
>
> In what way am I lying ?

You are making an incompatible type conversion. If you don't like
the word 'lying', substitute, 'writing a program with undefined behaviour'
instead. 





More information about the Info-vax mailing list