#504 new
Charles Comstock

Nested masgn should return an array

Reported by Charles Comstock | April 18th, 2008 @ 01:04 PM | in 1.1

Currently rubinius has the following behavior for masgn:

(a,b = 1,2).inspect => "true"

Versus MRI which uses

(a,b = 1,2).inspect => "[1,2]"

This was chosen as an optimization for rubinius, but it would seem to be more correct if the compiler detected that the array return value of the masgn was actually being used and conditionally allocate an array in that circumstances.

Comments and changes to this ticket

  • Ryan Davis

    Ryan Davis April 29th, 2008 @ 04:52 PM

    • → Title changed from “[TODO] Allow nested masgn to conditionally return an array” to “Nested masgn should return an array”
    • → Assigned user changed from “” to “Ryan Davis”

Please Login or create a free account to add a new comment.

You can update this ticket by sending an email to from your email client. (help)

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Tags