jmichel / schur.institut.math.jussieu.fr (Jean Michel) writes:
[...]
>Now a,b,c are different classes, and the debug print_out is not associated
>especially to any object so in an ordinary programming language (like 
>Pascal)
>the best solution would be a local procedure. Is there a better solution
>in ruby than what I did:
>
>    debug_print=Proc.new{ the print statement}
>
>    and then do
>      debug_print.call

Not addressing the question, just pointing out that you don't
have to make anonymous functions look so ugly in Ruby.

  debug_print = proc { the print statement }
  # Time passes
  debug_print[]

Looks nicer to my eyes.

Cheers,
Ben
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com