Re: Bug of Units-package in combination with DynamicModule
- To: mathgroup at smc.vnet.net
- Subject: [mg90038] Re: Bug of Units-package in combination with DynamicModule
- From: Hannes Kessler <HannesKessler at hushmail.com>
- Date: Fri, 27 Jun 2008 06:15:07 -0400 (EDT)
- References: <g3t6ss$ikv$1@smc.vnet.net> <g3vkui$khk$1@smc.vnet.net>
Thanks Daniel, then I'll probably have to upgrade .. On 26 Jun., 10:45, dh <d... at metrohm.ch> wrote: > Hi Hannes, > > with version 6.0.3 the context after re-opening is Global` and Unit is > > on the context path. I think this is the work of DynamicModule. > > Daniel > > > > Hannes Kessler wrote: > > Hello, > > > the following DynamicModule loads the Units`-package: > > > Needs["Units`"]; > > DynamicModule[{a = 10}, {PopupMenu[Dynamic[a], {10, 20}], Dynamic[a]}, > > Initialization :> Needs["Units`"]] > > > After closing the notebook, quitting the kernel and re-opening the > > notebook, the context is Units` not Global`, the context path > > {"Units`", "System`"}. This phenomenon occured even after I > > deactivated completely the `Private` section of the Units` package, > > leaving only the public declarations !! > > > I found also interferences with my personal packages loaded in a > > DynamicModule, where symbols from those were moved to the Units`- > > context. > > > The problem apparently does not occur with other packages. > > > Best regards, > > Hannes Kessler > > -- > > Daniel Huber > > Metrohm Ltd. > > Oberdorfstr. 68 > > CH-9100 Herisau > > Tel. +41 71 353 8585, Fax +41 71 353 8907 > > E-Mail:<mailto:d... at metrohm.com> > > Internet:<http://www.metrohm.com>