On Thu, Jul 31, 2008 at 11:47:35PM +1000, Leon Spencer wrote:
> I'm running in to a little problem. I'm not used to contributing to these 
> kinds of projects, but I hear that it's nice to have the minimum code to 
> reproduce a bug. This does it every time:
> 
> class CrashExample < Shoes
>   url '/', :crash
> 
>   def crash
>     animate {
>       rect(30,30,30,30)
>       rect(100,100,30,30)
>     }
>   end
> end
> Shoes.app

Aha, good to see you, Leon!

Fantasick, this crashes on Linux as well.  Very good.  This is a
bug; I'll address this tomorrow.  For now, wrap the `rect` calls in
an `append` block.

  class RectCartoon < Shoes
    url '/', :cartoon
  
    def cartoon
      animate do |i|
        append do
          rect(30 + i,30,30,30)
          rect(100 + i,100,30,30)
        end
      end
    end
  end
  Shoes.app

In the Shoes manual, the section "Slots > Manipulation" describes
these blocks like `append` and `clear`.

_why

Reply via email to