On 10/4/05, Andrew Backer <awbacker / gmail.com> wrote:
> Wow, quick responses ;)
>
> No, i don't know about PP.  I am just accustomed to having serious
> output formatting control in fortran, c & derivitives, etc. for
> printing ints, floats, hex, padding, ...  Its probably here, I just
> don't know where it is.

There's printf and friends in Ruby.  Check http://www.ruby-doc.org or
the 'Programming Ruby' book by the Pragmatic Programmers.

> I just extend the class for each individual program.  I wrote the
> resize so I don't have to worry about what arrays I pass into the
> function.  resize(n,def) just .clear's it and stuffs a bunch of 'def'
> in to up to size n.  I haven't yet writting large ruby programs, so no
> experience worrying about things.

I still have no idea why you want to manually resize an Array.