Return 'this' proposal

Marek Kozieł develop4lasu at gmail.com
Tue Mar 17 22:16:07 PDT 2009


2009/3/18 Reinier Zwitserloot <reinier at zwitserloot.com>

> Joe,
>
[snip]


> This modifier is strictly inherited. So:
>
> public abstract class MyBuilder {
>     public this MyBuilder setFoo(int foo) {
>         return this;
>     }
> }
>
>
>  --Reinier Zwitserloot
>
>
>
It's interesting proposition.

I noticed that editor corrected me in wrong way.

It would prevent NFP

should be:

It would prevent NPE (NullPointerException).


-- 
Pozdrowionka. / Regards.
Lasu aka Marek Kozieł

http://lasu2string.blogspot.com/



More information about the coin-dev mailing list