1.9 - modify frozen object exception

Discussion in 'Ruby' started by Tim Hunter, Sep 29, 2007.

  1. Tim Hunter

    Tim Hunter Guest

    Tim Hunter, Sep 29, 2007
    #1
    1. Advertising

  2. Tim Hunter

    Eric Hodel Guest

    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 <>
    >
    > [...]
    >
    > * error.c (rb_error_frozen): now raise RuntimeError instead of
    > TypeError.
     
    Eric Hodel, Sep 30, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. est
    Replies:
    1
    Views:
    556
  2. Elias Athanasopoulos

    modify a frozen object

    Elias Athanasopoulos, Nov 13, 2003, in forum: Ruby
    Replies:
    0
    Views:
    81
    Elias Athanasopoulos
    Nov 13, 2003
  3. LC Geldenhuys
    Replies:
    5
    Views:
    262
    Robert Klemme
    Feb 18, 2004
  4. Joel VanderWerf

    safe to modify frozen object from C?

    Joel VanderWerf, Apr 26, 2004, in forum: Ruby
    Replies:
    2
    Views:
    90
    Joel VanderWerf
    Apr 26, 2004
  5. Peña, Botp
    Replies:
    2
    Views:
    175
    Peña, Botp
    May 31, 2007
Loading...

Share This Page