Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 2.4.3
- Order of parameters and arguments
- What output would you expect from this code snippet?
- def mixed_args(a,b,*c,d)
- puts "Arguments:"
- puts a,b,c,d
- end
- mixed_args(1,2,3,4,5)
- hatası da bu
- fatih@ubuntu:~$ ruby deneme1.rb
- deneme1.rb:3: syntax error, unexpected tIDENTIFIER, expecting tAMPER or '&'
- def obj.mixed_args(a,b,*c,d)
Add Comment
Please, Sign In to add comment