Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

rebol

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
like image 288
Jina. Avatar asked Feb 21 '13 22:02

Jina.


1 Answers

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.

like image 94
earl Avatar answered Sep 30 '22 10:09

earl