From: Robert Klemme Date: 2006-03-29T15:58:42+09:00 Subject: Re: strange order of execution Dirk Traulsen wrote: > Am 29 Mar 2006 um 14:18 hat Hal Fulton geschrieben: > >> Dirk Traulsen wrote: >>> Can somebody please explain this strange order of execution to me? >>> >> All the arguments to your print are evaluated, including the >> method call. So the stuff inside that method is printed first. > > Alright, so the method calls are executed first already during evaluation. I thought The method invocation *is* the evaluation. > print "string", method1 > > would be identical to > > print "string" > print method1 No, not at all. Btw, if you want to watch what's going on, you can insert this at the top of your script and follow the execution as it's printed set_trace_func lambda {|*a| p a} Kind regards robert