HI Safi, I still couldn't understand the first part of the error. That expression...should return something. Can you throw little Light on that. Thanks, Rajkumar Goel
________________________________ From: Saifi Khan <[email protected]> To: [email protected] Sent: Saturday, 20 June, 2009 3:03:38 PM Subject: Re: [twincling] DEF way of evaluation On Sat, 20 Jun 2009, Mukund Deshpande wrote: > > Another query is a "def" or "a method as in java" automatically returns the > value..(No need to give explicit return) "The value evaluated recently"..So > once it returns a value How can it again evaluate max(3) ???? > I mean how can we have two returns. > > thanks, > SMS > There is "no" return ! The answer again lies in understanding the Functional programming perspective. each function is an expression, each expression is evaluated, each evaluation is a value ! function --> expression --> value. So given a pattern match, the evaluated part of the function is in effect the return value. Does that help ? thanks Saifi. ------------------------------------ http://twincling.org/ http://twitter.com/twincling ---------------------------------------- Yahoo! Groups Links ICC World Twenty20 England '09 exclusively on YAHOO! CRICKET http://cricket.yahoo.com [Non-text portions of this message have been removed]

