Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #4749

Re: Quit versus Clear["Global`*"]

From DrMajorBob <btreat1@austin.rr.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Re: Quit versus Clear["Global`*"]
Date 2011-09-04 22:09 +0000
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Message-ID <j40sva$l23$1@smc.vnet.net> (permalink)
References <201109031205.IAA05310@smc.vnet.net> <j3u7r6$a88$1@smc.vnet.net>

Show all headers | View raw


Remove[x] perniciously changes the definition of symbols that mention x,  
replacing x with Removed[x] and making those definitions useless. Clear[x]  
removes definitions for x, but leaves alone other symbols that mention  
it... which, to me, seems far more sensible.

After Clear[x], other symbols referring to x can still be used (with or  
without new definitions for x). After Remove[x], all those symbols are  
just trash, lying around waiting for Quit to clear them away.

Bobby

On Sun, 04 Sep 2011 03:12:58 -0500, AES <siegman@stanford.edu> wrote:

> In article <j3u7r6$a88$1@smc.vnet.net>,
>  Murray Eisenberg <murray@math.umass.edu> wrote:
>
>> First, Clear, whether for a single object or an entire list of objects,
>> does not remove their Attributes, e.g., just their values. You might
>> want ClearAll instead.
>
> And how do either of those differ from Remove?
>


-- 
DrMajorBob@yahoo.com

Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Quit versus Clear["Global`*"] Murray Eisenberg <murray@math.umass.edu> - 2011-09-03 21:56 +0000
  Re: Quit versus Clear["Global`*"] AES <siegman@stanford.edu> - 2011-09-04 08:13 +0000
  Re: Quit versus Clear["Global`*"] Murray Eisenberg <murray@math.umass.edu> - 2011-09-04 22:07 +0000
  Re: Quit versus Clear["Global`*"] DrMajorBob <btreat1@austin.rr.com> - 2011-09-04 22:09 +0000
  Re: Quit versus Clear["Global`*"] DrMajorBob <btreat1@austin.rr.com> - 2011-09-05 11:07 +0000
  Re: Quit versus Clear["Global`*"] "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-09-06 07:56 +0000
  Re: Quit versus Clear["Global`*"] Murray Eisenberg <murray@math.umass.edu> - 2011-09-06 07:58 +0000
  Re: Quit versus Clear["Global`*"] Andrzej Kozlowski <akoz@mimuw.edu.pl> - 2011-09-06 08:04 +0000

csiph-web