model: `new` factories are named "new", not init.
authorJean Privat <jean@pryen.org>
Wed, 22 Oct 2014 18:52:16 +0000 (14:52 -0400)
committerJean Privat <jean@pryen.org>
Thu, 23 Oct 2014 15:39:44 +0000 (11:39 -0400)
commit16e518c4178652c812468a794cc1ccf2197b3573
treec102517ad0f7111c502d347a1abd76f37d18627d
parent2a8f8550c88db1012530b8c915afb8db2e6130d8
model: `new` factories are named "new", not init.

It means that in `new X`, first the method name `new` is searched,
then the method named `init` as a fallback.

Signed-off-by: Jean Privat <jean@pryen.org>
src/compiler/abstract_compiler.nit
src/interpreter/naive_interpreter.nit
src/modelbuilder.nit
src/modelize/modelize_property.nit
src/nitni/nitni_callbacks.nit
src/semantize/typing.nit