Help, what am I doing wrong??? --resolution BZ
Dennis Brown
see3d at writeme.com
Sun Jul 31 16:45:53 EDT 2005
Ok folks,
I BZ'd this issue for the Rev team to take note of. If you want to
second this, you can send a vote it's way.
Thanks to all for the discussion and helping me understand the problem.
Dennis
----------
http://support.runrev.com/bugdatabase/show_bug.cgi?id=3036
Summary: Repeat for each errors in IDE
Product: Revolution
Version: 2.6
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: enhancement
Priority: P2
Component: Script compiler
AssignedTo: engineteam at runrev.com
ReportedBy: see3d at writeme.com
QAContact: enginebugs at lists.runrev.com
The repeat for each construct behaves in a way that trips up just
about everyone
eventually and can be very hard to debug. If the labelVariable is
modified inside
the loop, the data from the container is somehow trashed also. To
make matters
worse, when steping through the script in the debugger, the data from
the container
is not trashed, and the loop works perfectly. So the code "reads"
right, and in
the debugger works right, but under normal operation, it does not
work. This can
be very frustrating to debug.
I propose that since the labelVariable must be treated as a read only
quantity
inside the loop (for any useful script), that an error message be
generated by the
script compiler when an attempt to modify the labelVariable is
detected. If this
is too hard, then fix the runtime package so that the contents of the
labelVariable
can be modified without messing up the next repeat value.
Dennis
----------
Posted by RevZilla 2.0.3
On Jul 31, 2005, at 2:15 AM, Mark Wieder wrote:
> Dennis-
>
> Saturday, July 30, 2005, 7:24:58 PM, you wrote:
>
> DB> I would really like to get a real error message since it does
> not do
> DB> what you expect from reading the code. How many newbies do we
> have
> DB> to trip up before we erect a stop sign at that intersection?
>
> DB> Should I BZ it?
>
> I'm not sure it's actually a bug, but it's worth BZing just to keep it
> on the rev team's radar, since it's a stumbling block that everyone
> runs across at some time or other.
>
> --
> -Mark Wieder
> mwieder at ahsoftware.net
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list