Project

General

Profile

Actions

Bug #13815

closed

p args

Added by opti (Andreas Opti) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Assignee:
-
Target version:
-
[ruby-core:82380]

Description

x=y=0 # outside defined vars!
3.times {|i| x,y=x+1,y+1 } # as expected: x==3
3.times {|i| p(x,y=x+1,y+1) } # NOT as expected: x not changed!

x,y are the same vars as above. p shoudn't have any effect on scope

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0