I'm sure this worked on an earlier version of Shoes, but it doesn't work in current builds. I ran into it on TankSpank:


And just put together a minimal test case:


If you comment out line 5 (where I monkeypatch Vector), it works; otherwise, it hangs on line 13 with

Is there any possible workaround, or is this some sort of deep bug?

Is there an alternative syntax I can use for extending Vector in this way? I can't do a subclass, as I need to be able to use my added methods on 'vanilla' vectors returned from other methods.

-- Ernie P.





Reply via email to