compile: no default value for notnull primitive attributes.
authorJean Privat <jean@pryen.org>
Wed, 24 Jun 2009 19:16:33 +0000 (15:16 -0400)
committerJean Privat <jean@pryen.org>
Wed, 24 Jun 2009 20:29:37 +0000 (16:29 -0400)
commit4d9d0235cf716a71b044034e00e32d3219921028
treeda9b1d95df001589258d34655ce86ca3e16cd47c
parentfd43e61c94b7b4431349de59eb4927ad990aa740
compile: no default value for notnull primitive attributes.

However, instead of segfaulting, using an uninitialized attribute may
behave like if it was initialized to 0 (whatever it means).

Therefore the new test base_attr_nullable_int.nit makes more sense with -W to
activate non-lethal runtime warnings.

Signed-off-by: Jean Privat <jean@pryen.org>
src/compiling/compiling_global.nit
tests/base_attr_nullable_int.nit [new file with mode: 0644]
tests/sav/base_attr_nullable_int.sav [new file with mode: 0644]
tests/sav/base_attr_nullable_int_alt1.sav [new file with mode: 0644]
tests/sav/base_attr_nullable_int_alt2.sav [new file with mode: 0644]
tests/sav/base_attr_nullable_int_alt3.sav [new file with mode: 0644]
tests/sav/base_attr_nullable_int_alt4.sav [new file with mode: 0644]
tests/sav/base_attr_nullable_int_alt5.sav [new file with mode: 0644]