Hi Christopher,

There seems to be a bug with the Vector class in the shoes version of ruby. I'm making vectors of coordinates using this line:

That sounds like the same problem I had with tankspank.  Did you:

require 'matrix'

?

I don't think I needed to do that in pure Ruby, but I did in Shoes.

-- Ernie P.
On Dec 29, 2008, at 3:23 AM, Christopher Small wrote:

There seems to be a bug with the Vector class in the shoes version of ruby. I'm making vectors of coordinates using this line:

pos = Vector[mouse[1], mouse[2]]

Before I was doing this with arrays, but realized that using vectors would help me out in the long run. Once I switched to vectors, I got this error in the shoes console:

undefined method '[]' for #<Class:0x1249a54>::Vector

Has anyone come across this? It seems like this should work just fine. I'm using the latest .dmg release of Raisins on Leopard.

Thanks

Chris

Reply via email to