Group Abstract Group Abstract

Message Boards Message Boards

7
|
10.4K Views
|
6 Replies
|
26 Total Likes
View groups...
Share
Share this post:

Different Cloud vs. Desktop Return behavior in V13.1

Posted 3 years ago

After install V13.1 one of my scripts get broke in my Mac. Below is the core of the bug:

Module[{}, Return[1]; 2]

Return[1]

In the Wolfram Cloud we get the expected result.

Cross post in Stack Exchange

POSTED BY: Rodrigo Murta
6 Replies
POSTED BY: Jason Biggs
Posted 3 years ago

With versions 5.2, 8.0.4 and 12.3.1 on Windows 10 x64 I get the same result:

screenshot screenshot

POSTED BY: Alexey Popkov

Interesting! It works at Wolfram Cloud

POSTED BY: Daniel Carvalho

I can confirm that this bug also occurs on 13.0.0 for Linux (64-bit), see this attached screenshot:

bug

POSTED BY: Pedro Cabral
Posted 3 years ago

Here is a duplicate question on MMa.SE with a detailed answer from Leonid Shifrin:

Read also this (the last section "Why did Return appear?") and this.

POSTED BY: Alexey Popkov

ex1

Hey guys,

*2 things:

  • 1) not everything is a BUG, I myself fell into a lot of traps in Return problems when I create functions in WL, due to lack of training thro documentation (my fault), but (I believe that) nothing about this command has changed in recent years.. I recommend testing through the Documentation!

  • 2) Wolfram's QA (quality assurance) is the best of the best developers, they are amazing! ..for me, Return is working correctly in 13.1, I don't know if something has changed internally, because I didn't identify it..

..regarding the inconsistency between Cloud and Mathematica, I believe a ticket has already been made..

Thanks!

Claudio Chaib

POSTED BY: Claudio Chaib
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard