Dynamic (more)
- To: mathgroup at smc.vnet.net
- Subject: [mg87703] Dynamic (more)
- From: Gianluca Gorni <gianluca.gorni at dimi.uniud.it>
- Date: Wed, 16 Apr 2008 04:59:13 -0400 (EDT)
Hi! The following gives the (expected?) result 1: p = 0; q = 0; Dynamic[q = p + 1]; Dynamic[q] This one gives {1, 1}, also as I would expect: DynamicModule[{p, q}, p = 0; q = 0; {Dynamic[q = p + 1], Dynamic[q]}] Can anybody explain why the next gives 0? DynamicModule[{p, q}, p = 0; q = 0; Dynamic[q = p + 1]; Dynamic[q] ] Try the following pair too: DynamicModule[{p = 0, q}, {Dynamic[q = p + 1], Dynamic[q]}] DynamicModule[{p = 0, q}, Dynamic[q = p + 1]; Dynamic[q]] Luca