MathGroup Archive 2000

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

Search the Archive

Re: Using Block instead of Module?


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)