Why does ALSO usage lead to different results in R2 and R3?
Asked Answered
P

2

6

This code returns -1 for R3 and +1 for R2. I'd like to know what I am doing wrong.

 f: func [] [
     also  return  1
           return -1
 ]
 f
Peroration answered 21/2, 2013 at 22:44 Comment(0)
L
2

You are doing nothing wrong; unfortunately you are tripped up by a known bug in R3. Basically, the also incorrectly "eats up" the return. Fortunately, we have a fix for this forthcoming. (If you want to help with testing, have a look at my fix-unwind-passing branch.) I hope we'll have this fix done and integrated shortly.

Lunkhead answered 21/2, 2013 at 22:55 Comment(0)
C
2

That is already listed as a bug in R3. The correction is on the way, AFAIK.

Chokecherry answered 21/2, 2013 at 22:54 Comment(0)
L
2

You are doing nothing wrong; unfortunately you are tripped up by a known bug in R3. Basically, the also incorrectly "eats up" the return. Fortunately, we have a fix for this forthcoming. (If you want to help with testing, have a look at my fix-unwind-passing branch.) I hope we'll have this fix done and integrated shortly.

Lunkhead answered 21/2, 2013 at 22:55 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.