[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

1.9 - modify frozen object exception

Tim Hunter

9/29/2007 8:47:00 PM

In 1.9, I notice that the exception that is raised for trying to modify
a frozen object is now RuntimeError instead of TypeError. Is this likely
to be a permanent change?

--
RMagick OS X Installer [http://rubyforge.org/project...]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?for...]
RMagick Installation FAQ [http://rmagick.rubyforge.org/instal...]

1 Answer

Eric Hodel

9/29/2007 11:55:00 PM

0

On Sep 29, 2007, at 13:46 , Tim Hunter wrote:

> In 1.9, I notice that the exception that is raised for trying to
> modify a frozen object is now RuntimeError instead of TypeError. Is
> this likely to be a permanent change?

From ChangeLog:

> Wed Nov 17 03:42:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
>
> [...]
>
> * error.c (rb_error_frozen): now raise RuntimeError instead of
> TypeError.