[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: A change in io metatable
- From: Sean Conner <sean@...>
- Date: Wed, 17 Jul 2019 20:22:56 -0400
I just noticed the following change:
Author: Roberto Ierusalimschy <email@example.com>
Date: Mon Jul 1 12:25:00 2019 -0300
Methods separated from metamethods in 'io'
In the 'io' library, changed the use of the metatable also as its
own "method table", so that metamethods cannot be accessed as if they
were methods. (For instance, 'io.stdin.__gc' does not result in
the finalizer metamethod anymore.)
I'm just curious as to the rational for the change.
-spc (But you can still get to them via getmetatable())