[Rd] order of operations

Gabor Grothendieck ggrothend|eck @end|ng |rom gm@||@com
Fri Aug 27 17:17:06 CEST 2021


Are there any guarantees of whether x will equal 1 or 2 after this is run?

(x <- 1) * (x <- 2)
## [1] 2
x
## [1] 2

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com



More information about the R-devel mailing list