Overriding metamethods for classes #56

Open
naquad opened this Issue Jun 18, 2013 · 2 comments

Comments

Projects
None yet
2 participants
@naquad

naquad commented Jun 18, 2013

Hi.

I'm monkey-patching LGI a bit (especially gio.File). It was easy to add new method (jus function gio.File:new_method() ... end), but I still can't figure out how to add metamethod like __string or __add, etc...?

Any clues?

Thanks.

@pavouk

This comment has been minimized.

Show comment Hide comment
@pavouk

pavouk Jun 27, 2013

Owner

It is currently not possible, sorry. I'll try to include it in next major cycle (0.8), but please don't hold your breath.

Owner

pavouk commented Jun 27, 2013

It is currently not possible, sorry. I'll try to include it in next major cycle (0.8), but please don't hold your breath.

@pavouk

This comment has been minimized.

Show comment Hide comment
@pavouk

pavouk Jan 31, 2015

Owner

gregier recently added support for _tostring which I merged just now. So this could be helpful for you.

Owner

pavouk commented Jan 31, 2015

gregier recently added support for _tostring which I merged just now. So this could be helpful for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment