You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>f= fn(x) x>z= f({y=2})
[1] 2>z# The result of {y = 2} is not bound to zError:object'z'notfoundbacktrace:>y# but the binding for y is created
[1] 2
The text was updated successfully, but these errors were encountered:
sebffischer
changed the title
Bug when function is passed an expressino that contains an assignment
Bug when function is passed an expression that contains an assignment
Jul 7, 2024
f<-function(a, b) (a, b)
f({ x<-1 }, { y<-2 })
#> [[1]]#> a @ <environment 0x14d1a4>#> #> [[2]]#> a @ <environment 0x14d1a4>
I’m guessing that something broke when the branches were added to support tail calls, meaning that expression results only resolve when they absolutely have to. Probably an overlooked code path.
The text was updated successfully, but these errors were encountered: