qdtk / openshadinglanguage

Automatically exported from code.google.com/p/openshadinglanguage
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Check for component out of bounds at compile time #34

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
color c; y = c[x];

will produce a runtime error if x < 0 or x > 3, of course. But in the case 
where x is a literal integer 
(e.g., c[4]) it should be a compiler error, too.

Original issue reported on code.google.com by rene.lim...@gmail.com on 11 Jan 2010 at 7:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by rene.lim...@gmail.com on 13 Jan 2010 at 1:02