1.9 - modify frozen object exception

T

Tim Hunter

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?
 
E

Eric Hodel

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 <[email protected]>

[...]

* error.c (rb_error_frozen): now raise RuntimeError instead of
TypeError.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,527
Members
44,998
Latest member
MarissaEub

Latest Threads

Top