Shouldn't invalid references like this fail at compile time?

Mike Franklin slavo5150 at yahoo.com
Thu Jan 25 04:59:55 UTC 2018


On Thursday, 25 January 2018 at 04:45:34 UTC, Walter Bright wrote:

> This implies a ROM must be located there. Else how do initial 
> values get there?

Yes, ROM is at address 0.  Address 0 contains the initial stack 
pointer.  So you read address 0, dereference it, and then do your 
damage.

Mike


More information about the Digitalmars-d mailing list