|
[Date Index]
[Thread Index]
[Author Index]
Re: Quit versus Clear["Global`*"]
- To: mathgroup at smc.vnet.net
- Subject: [mg121221] Re: Quit versus Clear["Global`*"]
- From: DrMajorBob <btreat1 at austin.rr.com>
- Date: Sun, 4 Sep 2011 18:06:20 -0400 (EDT)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
- References: <201109031205.IAA05310@smc.vnet.net> <j3u7r6$a88$1@smc.vnet.net>
- Reply-to: drmajorbob at yahoo.com
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 at stanford.edu> wrote:
> In article <j3u7r6$a88$1 at smc.vnet.net>,
> Murray Eisenberg <murray at 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 at yahoo.com
Prev by Date:
Print bug with -script? (quotes display)
Next by Date:
Re: Quit versus Clear["Global`*"]
Previous by thread:
Re: Quit versus Clear["Global`*"]
Next by thread:
Re: Quit versus Clear["Global`*"]
|