MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Using Block instead of Module?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg24400] Re: Using Block instead of Module?
  • From: Mark Fisher <me.fisher at atl.frb.org>
  • Date: Wed, 12 Jul 2000 23:13:43 -0400 (EDT)
  • Organization: Federal Reserve Bank of Atlanta
  • References: <8jtf5f$ik5@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

I haven't sorted out exactly what is going in these two examples. Block
and Module are different: Module creates a new symbol, while Block uses
the given symbol. Nevertheless, there is an even shorter version of your
program that works:

In[25]:=
outputTest[lst_List, id_Integer] := Put[lst, ToString[id] <> ".txt"]

In[26]:=
outputTest[{1, 2, 3}, 3]

In[27]:=
!! 3.txt

{1, 2, 3}

--Mark.


  • Prev by Date: step by step integration / FT
  • Next by Date: Nice displaing vs. orrible printing
  • Previous by thread: RE: Using Block instead of Module?
  • Next by thread: Memory problems using mathlink (Sparse Matrix)