[mailto:list-bounce / example.com] On Behalf Of Frank Meyer
# Subject: Re: Passing two functions as parameters
# 
# I know only one way:
# 
# call_fncs( Proc.new { my_fnc1 }, Proc.new { my_fnc2 } )

i like ruby since it treats vars and methods alike.

this is just a simple example,

irb(main):001:0> def x
irb(main):002:1>   puts "x"
irb(main):003:1> end
=> nil
irb(main):004:0> def y
irb(main):005:1>   puts "y"
irb(main):006:1> end
=> nil
irb(main):007:0> def test(x,y)
irb(main):008:1>   x
irb(main):009:1>   y
irb(main):010:1> end
=> nil
irb(main):011:0> test x,y
x
y
=> nil
irb(main):012:0> def test2(a=x,b=y,c=x)
irb(main):013:1>   a
irb(main):014:1>   b
irb(main):015:1>   c
irb(main):016:1> end
=> nil
irb(main):017:0> test2
x
y
x
=> nil
irb(main):018:0>

kind regards -botp