A ToExpression question
- To: mathgroup at smc.vnet.net
- Subject: [mg58316] A ToExpression question
- From: "Ray Koopman" <koopman at sfu.ca>
- Date: Tue, 28 Jun 2005 05:13:15 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
f1[x_] := Print[x]; f2[x_] := ToExpression["Print[x]"]; f3[x_] := Module[{y = x}, ToExpression["Print[y]"]]; f4[x_] := Block[{y = x}, ToExpression["Print[y]"]]; Scan[#[0]&,{f1,f2,f3,f4}] 0 x y 0 Why don't f2 and f3 print 0 ?
- Follow-Ups:
- Re: A ToExpression question
- From: János <janos.lobb@yale.edu>
- Re: A ToExpression question
- From: Andrzej Kozlowski <andrzej@akikoz.net>
- Re: A ToExpression question