Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2010

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

Search the Archive

Re: question on passing variable to function by reference

  • To: mathgroup at smc.vnet.net
  • Subject: [mg113550] Re: question on passing variable to function by reference
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Tue, 2 Nov 2010 05:01:44 -0500 (EST)
  • References: <iam364$k2l$1@smc.vnet.net>

Actually, I thought you couldn't do a 'pass by reference' in
Mathematica, but this really looks like the real thing.

You might want to add a test to check that list is really a List, but
otherwise I don't see a problem.

Cheers -- Sjoerd

On Nov 1, 11:01 am, "Nasser M. Abbasi" <n... at 12000.org> wrote:
> Suppose I want to pass an array to function to be filled in by some value=


  • Prev by Date: Re: It would be nice to have DiagonalMatrix accept a matrix as building
  • Next by Date: Output x^-1
  • Previous by thread: question on passing variable to function by reference
  • Next by thread: Re: question on passing variable to function by reference