What is a type error?

Darren New dnew at san.rr.com
Tue Jul 11 12:30:39 EDT 2006


Chris Smith wrote:
> Specialized 
> language already exist that reliably (as in, all the time) move array 
> bounds checking to compile time; 

It sounds like this means the programmer has to code up what it means to 
index off an array, yes? Otherwise, I can't imagine how it would work.

x := read_integer_from_stdin();
write_to_stdout(myarray[x]);

What does the programmer have to do to implement this semantic in the 
sort of language you're talking about? Surely something somewhere along 
the line has to  "fail" (for some meaning of failure) at run-time, yes?

-- 
   Darren New / San Diego, CA, USA (PST)
     This octopus isn't tasty. Too many
     tentacles, not enough chops.



More information about the Python-list mailing list