throw with String

Alexander Veit alexander.veit at gmx.net
Sat Sep 18 04:18:35 PDT 2010


> I realize that I am late here, but wanted to propose another little
> small language change anyway:
> 
> ---
> throw "error"
> 
> should be a shortcut to
> 
> throw new RuntimeException("error")
> ---

Hm, I would suggest using a preprocessor, or something like

 raise("error"); // static import

instead.

-- 
Cheers,
Alex






More information about the coin-dev mailing list