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


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

Why does Manipulate leak global symbols? (Potential bug here?)

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!feed.xsnews.nl!border-1.ams.xsnews.nl!newspump.sol.net!posts.news.twtelecom.net!nnrp3.twtelecom.net!not-for-mail
From Szabolcs <szhorvat@gmail.com>
Newsgroups comp.soft-sys.math.mathematica
Subject Why does Manipulate leak global symbols? (Potential bug here?)
Date Sat, 24 Dec 2011 12:10:22 +0000 (UTC)
Organization Steven M. Christensen and Associates, Inc and MathTensor, Inc.
Sender steve@smc.vnet.net
Approved Steven M. Christensen <steve@smc.vnet.net>, Moderator
Message-ID <jd4ffe$db3$1@smc.vnet.net> (permalink)
Reply-To comp.soft-sys.math.mathematica@googlegroups.com
Lines 16
NNTP-Posting-Date 24 Dec 2011 11:15:19 GMT
NNTP-Posting-Host 03be2e29.news.twtelecom.net
X-Trace DXC=7bFXl0jQ2hfIUHdLb3W^LeC_A=>8kQj6m=_1NR_H?JPmb95`<gFe:DjEFiONJ7[GofkFP2L[be^C`
X-Complaints-To abuse@twtelecom.net
Xref x330-a1.tempe.blueboxinc.net comp.soft-sys.math.mathematica:7422

Show key headers only | View raw


Dear MathGroup,

It appears that in Mathematica 8, using Manipulate will create some symbols in the global context.  Let me illustrate:

First, I use this to monitor the contents of Global` in real time:

Dynamic@Refresh[Sort@Names["Global`*"], UpdateInterval -> 2]

Then I evaluate Manipulate[n, {n, 1, 10}]

Note that the following unexpected symbols have been added to the Global` context: BitDepth, FullScreenArea, Resolution, ScreenArea

Why does this happen?  Is it a bug?  Can it cause any problems (e.g. if I have defined BitDepth before using Manipulate, in the belief that there's no such builtin)?

This makes me feel a bit insecure.  I am not sure if I might inadvertently break something by defining those symbols, thinking that they're not used by Mathematica (since they're syntax-coloured blue).

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


Thread

Why does Manipulate leak global symbols?  (Potential bug here?) Szabolcs <szhorvat@gmail.com> - 2011-12-24 12:10 +0000

csiph-web