Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

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

Search the Archive

Re: Using Block instead of Module?

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

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:

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

outputTest[{1, 2, 3}, 3]

!! 3.txt

{1, 2, 3}


  • 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)