Code Review: ArrayOfT

tfpt review “/shelveset:ArrayOfT;REDMOND\tomat”
Comment :
Enables simple array type creation:

require ‘mscorlib’
=> true

System::Array.of(Fixnum)
=> System::Int32[]

System::Array.of(Fixnum).new(10)
=> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

Tomas

Change is good.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs