From: Gavin Kistner Date: 2004-10-10T12:51:14+09:00 Subject: Re: [ANN] Ruby Course 1.0 On Oct 9, 2004, at 12:18 PM, Brian Schr�der wrote: > [Ruby Course 2004](http://ruby.brian-schroeder.de/course/) Very nice work, Brian. (I especially like the progress bar at the bottom :) One minor note: on page 18, you say: "A block is a piece of code, similar to an anonymous function, but it does not open a new scope. " This is incorrect, I think; as a closure, it inherits the previous scope, but there certainly is a new scope: rb(main):01> def echo(s); yield s; end #=> nil irb(main):02> foo = 'Hello, ' #=> "Hello, " irb(main):03> echo(12){ |arg| arg_as_string = arg.to_s; puts foo + arg_as_string } Hello, 12 #=> nil irb(main):04> arg_as_string NameError: undefined local variable or method `arg_as_string' for main:Object from (irb):4