Lies in education [was Re: The "loop and a half"]

Gregory Ewing greg.ewing at canterbury.ac.nz
Fri Oct 13 02:16:04 EDT 2017


Steve D'Aprano wrote:
> On Fri, 13 Oct 2017 03:37 pm, Gregory Ewing wrote:
> 
>>If the compiler can tell where p is initially pointing, it could
>>put the pointer in read-only memory.
> 
> If it's read-only, how can the compiler write to it?
> 
> (I come from the days when ROM was actual ROM, burned in at the factory.)

So, the factory is allowed to write to it. Possibly
it's writing data that came from... a compiler?

A memory that couldn't be written to at all, ever, would
be a bit useless!

-- 
Greg



More information about the Python-list mailing list