Merge: Annotation `nosuper` to avoid automatic super call in constructors
authorJean Privat <jean@pryen.org>
Fri, 15 Aug 2014 21:21:36 +0000 (17:21 -0400)
committerJean Privat <jean@pryen.org>
Fri, 15 Aug 2014 21:21:36 +0000 (17:21 -0400)
commita6bb00d9455b7ff73ab282f28d77bca607bf0c98
tree26e89683729261f4415aa4572ed36888b74d5488
parenta8e299d344fd3c704d66dae25fd5a9a5bf1bc1a3
parenta8150064c41df88f6ae85f3d71fe924185dad0b9
Merge: Annotation `nosuper` to avoid automatic super call in constructors

A super-init-call is automatically added in constructors that do not invoke one (a la java)
But sometimes one may want to avoid calling a super-init.

Before, this could be done with a dead super

~~~
init do
  if false the super # a super is present, so no additional implicit super-init
  rest
end
~~~

Now, one can just write

~~~
init is nosuper do
   rest
end
~~~

that is more KISS I think.

Pull-Request: #673
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>