I have not verified this yet, but I think the OR block of the online player is not doing short-circuit evaluation. But, I think the offline player does.
For example, if I give the script:
<set{ X }to( 5 }>
<if> << <( <{X }> <=> 5 )> <or> <( <{ Item [ X ] of MyList }> <=> TEST )> >>
Causes a problem for the online player if MyList does not have 5 elements in it. But, I believe the offline player handles it just fine.
This could be another way to detect if you are online vs. offline... at least until the bug is fixed.
Last edited by BoltBait (2009-08-29 21:27:15)
Offline
Necropost, but since no one ever posted the answer, I'll answer for future scratchers.
This is not about short-circuiting, which isn't supported at all, but about error handling; Scratch 1.4 ignores errors, but the flash/java players don't.
Offline
roijac wrote:
Necropost, but since no one ever posted the answer, I'll answer for future scratchers.
it's still a necropost even though you admit it
Last edited by Wes64 (2012-09-23 15:06:22)
Offline
Wes64 wrote:
roijac wrote:
Necropost, but since no one ever posted the answer, I'll answer for future scratchers.
it's still a necropost even though you admit it
![]()
It's not necessarily bad though.
As roijac said, it's a thing with error handling. There's probably a way to create short-circuit evaluation yourself though.
Offline
Squeak, as well as related languages, use eager evaluation.
In 2012, scientists at the LHC discovered the Higgs boson, which explains the source of the masses of the W+, W-, and Z bosons, as well as fermions.Offline