From: David Alan Black Date: 2000-12-04T00:39:42+09:00 Subject: [ruby-talk:6770] Re: behavior of Proc#arity? Hello -- On Sun, 3 Dec 2000, Yukihiro Matsumoto wrote: > Hi, > > In message "[ruby-talk:6746] Re: behavior of Proc#arity?" > on 00/12/03, Mark Slagell writes: > > |Note that POLS can't be entirely satisfied here: > | > | a,b,c = 1,2,3 # a=1; b=2; c=3 > | a,b = 1,2,3 # a=1; b=2 > | a = 1,2,3 # a=1 > | > |but, proc{|a| a}.call(1,2) returns an array. Would we want to > |distinguish a=1,2 from a=[1,2] ? > > What do you suppose the value of `a' after `a=1,2'? > I think it should be [1,2]. And my copy of miniruby works so now. Would that imply this: a,b = 1,2,3 # a==1, b==[2,3] If so, would the '*' (on the left side, at least) still have any separate functionality? David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav