Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #4733
| From | David Bailey <dave@removedbailey.co.uk> |
|---|---|
| Newsgroups | comp.soft-sys.math.mathematica |
| Subject | Re: Quit versus Clear["Global`*"] |
| Date | 2011-09-04 08:14 +0000 |
| Organization | Steven M. Christensen and Associates, Inc and MathTensor, Inc. |
| Message-ID | <j3vc1k$ejo$1@smc.vnet.net> (permalink) |
| References | <j3t5ga$58h$1@smc.vnet.net> |
On 03/09/2011 13:10, Themis Matsoukas wrote: > What is the difference between quitting the kernel and executing Clear["Global`*"]? > > Is there a command to quit the kernel, instead of selecting Quit/Local from there Evaluate menu? > > Thanks > Quit[] will quit the kernel. Obviously Clear["Global`*"] would not clear information that might end up in other contexts, whereas Quit[] will clear everything. I never clear the global context - I just quit the kernel one way or another. Restarting the kernel used to be rather slow, but with the speed of a modern PC, there really doesn't seem much point doing anything else unless you specifically wish to preserve some information that is not in Global`. I tend to quit the kernel quite a lot - e.g. between successive runs of a program - why risk the confusion that can arise when two function definitions end up coexisting! David Bailey http://www.dbaileyconsultancy.co.uk
Back to comp.soft-sys.math.mathematica | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Quit versus Clear["Global`*"] Themis Matsoukas <tmatsoukas@me.com> - 2011-09-03 12:10 +0000
Re: Quit versus Clear["Global`*"] "Oleksandr Rasputinov" <oleksandr_rasputinov@hmamail.com> - 2011-09-03 21:59 +0000
Re: Quit versus Clear["Global`*"] David Bailey <dave@removedbailey.co.uk> - 2011-09-04 08:14 +0000
Re: Quit versus Clear["Global`*"] "tenons@gmail.com" <tenons@gmail.com> - 2011-09-06 08:01 +0000
Re: Quit versus Clear["Global`*"] DrMajorBob <btreat1@austin.rr.com> - 2011-09-07 09:40 +0000
csiph-web