Re: Evaluation details
- To: mathgroup at smc.vnet.net
- Subject: [mg86765] Re: Evaluation details
- From: dh <dh at metrohm.ch>
- Date: Thu, 20 Mar 2008 02:56:23 -0500 (EST)
- References: <frqpsf$57r$1@smc.vnet.net>
Hi, that's right the right hand side is not evaluated and x is given the value x+1. You can verify this by using Information[x]. But now comes the pattern matcher and tries to evaluate the resulting expression x+1. And it is here where the recursion happens. hope this helps, Daniel Mumbo Jumbo wrote: > Hello, > > I am quite puzzled why a Mathematica statement > x=x+1; > causes infinite recursion. Since the ducumentation states that the lhs of > this statement is not evaluated, it seems to me that the evaluation of the > rhs should not lead to recursive evaluation. > TIA, Yuri. > >