D 1.076 Alpha for Windows 64 bits, works with VS 2010
Nick Sabalausky
SeeWebsiteToContactMe at semitwist.com
Mon Oct 1 05:30:46 PDT 2012
On Mon, 01 Oct 2012 08:16:13 +0200
Jacob Carlborg <doob at me.com> wrote:
> On 2012-10-01 06:35, Andrej Mitrovic wrote:
>
> > Is that a bug or a feature? :)
>
> Actually you can do the same thin in Ruby, at least with strings.
> This is can be kind of nice, no need to create a new exception type.
> But in Ruby the string is wrapped in an instance of RuntimeError, so
> that might not be comparable.
>
> raise "foo"
>
> Is the same as:
>
> raise RuntimeError.new("foo")
>
Haxe can throw anything, too. I've always found it borderline useless,
and frequently a pain.
More information about the Digitalmars-d-announce
mailing list