|
[Date Index]
[Thread Index]
[Author Index]
Re: Block vs Module
- To: mathgroup at smc.vnet.net
- Subject: [mg57545] Re: Block vs Module
- From: "Jens-Peer Kuska" <kuska at informatik.uni-leipzig.de>
- Date: Wed, 1 Jun 2005 06:01:30 -0400 (EDT)
- Organization: Uni Leipzig
- References: <d7ha4p$3lq$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Hi,
Block[] create a new variable only if it does not
exist and all functions
called from the block can access the variables
created by Block[].
Module[] create always new variables and no
function called from Module[] can
easy access the local variables from the caling
Module[].
Regards
Jens
"Josef Karthauser" <joe at tao.org.uk> schrieb im
Newsbeitrag news:d7ha4p$3lq$1 at smc.vnet.net...
>
> Can someone please explain to me what the
> difference between Module and
> Block are? I'm unclear as to in what
> circumstances I should use Block
> instead of Module.
>
> Thanks :)
> Joe
> --
> Josef Karthauser (joe at tao.org.uk)
> http://www.josef-k.net/
> FreeBSD (cvs meister, admin and hacker)
> http://www.uk.FreeBSD.org/
> Physics Particle Theory (student)
> http://www.pact.cpes.sussex.ac.uk/
> ================ An eclectic mix of fact and
> theory. =================
>
>
Prev by Date:
Re: reducing the time of constructing a List
Next by Date:
Re: opposite of partition
Previous by thread:
Re: Block vs Module
Next by thread:
Re: Related quastions. Question 2
|