D 1.076 Alpha for Windows 64 bits, works with VS 2010
Jacob Carlborg
doob at me.com
Sun Sep 30 23:16:13 PDT 2012
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")
--
/Jacob Carlborg
More information about the Digitalmars-d-announce
mailing list