Mike Hall wrote:
> 
> Phlip wrote:
> 
> >         color = @myColor
> >         line = TkcLine.new(aCanvas, [fromX, fromY, toX, toY]) {
> >             fill color
> >             }
> 
> Is there any work being done to bring the syntax more towards Ruby?
> Something like this, perhaps?
> 
>         line = TckLine.new(canvas, x0, y0, x1, y1).fill(color).width(3)
> 
> Just a thought.  Seems like it would be more Ruby-like.
> 
> --
> Mike Hall

personaly I use "named parameters":

line = TckLine.new(canvas, x0, y0, x1, y1,"fill"=> color, "width"=> 3)

all the parameters are inside the parenthesis, and it makes only one
function call.

jf




-- 
 _________________________________________ 
/ do you play Go?                         \
|http://jeanfrancois.menon.free.fr/rubygo |
\                                         /
 ----------------------------------------- 
        \   ^__^
         \  (oo)\_______
            (__)\       )\/\
                ||----w |
                ||     ||