From: David A. Black on
Hi --

On Sat, 17 Apr 2010, Derek Cannon wrote:

>> The problem is that you're reusing temp, and clearing it.
>
> Doh! I knew it was something easy. The raw_course_list is pushing a
> pointer to temp, not creating a copy of temp to push. Is this correct?

Yes, essentially, though the more standard word in Ruby is
"reference".


David

--
David A. Black, Senior Developer, Cyrus Innovation Inc.

THE Ruby training with Black/Brown/McAnally
COMPLEAT Coming to Chicago area, June 18-19, 2010!
RUBYIST http://www.compleatrubyist.com

First  |  Prev  | 
Pages: 1 2
Prev: Dont know where to look :(
Next: what is String#ord?