[#2367] Standard libraries — Dave Thomas <dave@...>

From ruby-dev summary:

60 messages 2004/02/11

[#2397] PATCH: deprecate cgi-lib, getopts, importenv, parsearg from standard library — Gavin Sinclair <gsinclair@...>

Index: cgi-lib.rb

15 messages 2004/02/12

[#2465] PATCH: OpenStruct#initialize to yield self — Gavin Sinclair <gsinclair@...>

This is a common approach I use to object initialization; I don't know

24 messages 2004/02/19

Intelligent eyes needed

From: Dave Thomas <dave@...>
Date: 2004-02-28 15:04:58 UTC
List: ruby-core #2521
I'm in the middle of updating the Pickaxe, and I wanted to try to 
explain better the differences between proc, Proc.new, and blocks. I 
also wanted to explain how break, next, and return work with blocks and 
procs.

I've come up with 
http://www.pragmaticprogrammer.com/extracts/blocks.pdf as my first pass 
at an explanation. If folks have time, I'd really appreciate comments, 
both on the accuracy (Matz?) and on how clear it is. Is the explanation 
correct? Is it as simple as possible? Have I covered all the cases?

This stuff is in the language reference section of the PickAxe, and so 
is supposed to be a little bit terse.

Cheers

Dave


In This Thread

Prev Next