Merge: Correct behavior of attribute reading in nitvm
authorJean Privat <jean@pryen.org>
Wed, 17 Sep 2014 16:05:42 +0000 (12:05 -0400)
committerJean Privat <jean@pryen.org>
Wed, 17 Sep 2014 16:05:42 +0000 (12:05 -0400)
commita724909604bbbefe137846dd57c2950e7ef791de
tree6493643201ea7399ade32945c61247d6de91bf7a
parent45a2c10167db59034d3481993960b82c1ba5caec
parentac7f2c9d5921b9d43a899c6fe1a354da56f733fe
Merge: Correct behavior of attribute reading in nitvm

This (small) PR allows the nitvm to pass more tests related to attributes reading.

The first commit introduces a new type and Instance which represent the initial values inside attributes.
In the second commit, the vm now throw the expected error when reading an uninitialized attribute.
The last commit implements ```isset``` expressions in the vm.

So, all tests base_attr*.nit are now corrects in the vm.

Pull-Request: #748
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>