dimitriv / Ziria

A domain-specific-language and compiler for low-level bitstream processing.
92 stars 18 forks source link

Array out of bound error message incorrect #35

Open bradunov opened 9 years ago

bradunov commented 9 years ago

The program below is obviously incorrect (index array too large) but it gives a Haskell error message (Prelude.(!!): index too large) instead of something from Ziria.

let f(a:arr int) = let b = {3,4,5} in let c = b[5] in return c in

read[int] >>> emit f({1,2}) >>> write[int]

similarly: