From: Patrick Li Date: 2008-09-02T01:49:21+09:00 Subject: Re: Request for Block local methods, and Proc syntax The reason instance_eval shouldn't be used in that way is because it interferes with your scope in a very unintuitive way. For example, you can't do something like this: @source = "pic.gif" html do image(@source) end You have to do something like this: source = @source html do image(source) end The reason, also, that I ask for a simpler syntax for procs, is so that we can eliminate the kludgy block argument syntax. I like Ruby, but I feel it's power is limited because of the complexity of it's syntax. Smalltalk is *almost* like Ruby, except that it treats blocks (or closures as they call it) consistently, which makes it possible to write many control structures. -- Posted via http://www.ruby-forum.com/.