From: David Bailey <david.bailey / technologist.com>
Subject: Re: Ruby/Tk (X,Y) Coordinate Question
Date: Sat, 1 Apr 2006 23:12:00 +0900
Message-ID: <13a738b2f770dc0de16ca015e13045ce / ruby-forum.com>
> Um, just to try out these %X and %Y objects real quick, I added X, Y, %X 
> and %Y to my argument list in the callback proc in the same form as the 
> x, y, %x and %y objects to see what would happen, but got the following 
> "dynamic constant assignment" and "formal argument" errors:

X and Y are constans. You must use local variables.
e.g.
  @root.bind('Button', 
             proc{|b,x,y,root_x,root_y| 
               mainCellClickedProc(b, x, y, root_x, root_y)
             }, "%b %x %y %X %Y")

-- 
Hidetoshi NAGAI (nagai / ai.kyutech.ac.jp)