From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: poffice@blade.nagaokaut.ac.jp Delivered-To: poffice@blade.nagaokaut.ac.jp Received: from kankan.nagaokaut.ac.jp (kankan.nagaokaut.ac.jp [133.44.2.24]) by blade.nagaokaut.ac.jp (Postfix) with ESMTP id 4E61C1960130 for ; Tue, 7 Jul 2015 22:11:34 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (smtp.nagaokaut.ac.jp [133.44.2.201]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 5FB0FB5D864 for ; Tue, 7 Jul 2015 22:38:24 +0900 (JST) Received: from funfun.nagaokaut.ac.jp (localhost.nagaokaut.ac.jp [127.0.0.1]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id 118BE97A832 for ; Tue, 7 Jul 2015 22:38:27 +0900 (JST) X-Virus-Scanned: amavisd-new at nagaokaut.ac.jp Authentication-Results: funfun.nagaokaut.ac.jp (amavisd-new); dkim=fail (1024-bit key) reason="fail (message has been altered)" header.d=sendgrid.me Received: from funfun.nagaokaut.ac.jp ([127.0.0.1]) by funfun.nagaokaut.ac.jp (funfun.nagaokaut.ac.jp [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zykzCL4VgjHa for ; Tue, 7 Jul 2015 22:38:26 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by funfun.nagaokaut.ac.jp (Postfix) with ESMTP id DA4AE97A826 for ; Tue, 7 Jul 2015 22:38:26 +0900 (JST) Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by voscc.nagaokaut.ac.jp (Postfix) with ESMTP id 1551095243E for ; Tue, 7 Jul 2015 22:38:23 +0900 (JST) Received: from [221.186.184.76] (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 7A463120455; Tue, 7 Jul 2015 22:38:22 +0900 (JST) X-Original-To: ruby-core@ruby-lang.org Delivered-To: ruby-core@ruby-lang.org Received: from o2.heroku.sendgrid.net (o2.heroku.sendgrid.net [67.228.50.55]) by neon.ruby-lang.org (Postfix) with ESMTPS id 8255512043D for ; Tue, 7 Jul 2015 22:38:18 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=OwjEX+ixFhVAfSpHqoTqcGCksQQ=; b=FO0Ngu7hkyH7t+51nq Ar/9dF9dYzbPQNRn/76xDcqBseFh3ua2+0D7gqldccM79AcYTYUMLG/+BHTIBdRE laqD3RLSG0fiBX4XmnpGc6VE5PPDGj+CiL9WWepQdaUqikNSKPmYX6u0MZMWc0GW edlix4vc3tFu5df5paW6VasIY= Received: by filter0614p1mdw1.sendgrid.net with SMTP id filter0614p1mdw1.3443.559BD63E3D 2015-07-07 13:38:09.13682195 +0000 UTC Received: from herokuapp.com (ec2-54-166-64-194.compute-1.amazonaws.com [54.166.64.194]) by ismtpd-043 (SG) with ESMTP id 14e68bced80.6d5d.54a49c for ; Tue, 07 Jul 2015 13:38:08 +0000 (UTC) Date: Tue, 07 Jul 2015 13:38:08 +0000 From: rr.rosas@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Redmine-MailingListIntegration-Message-Ids: 44497 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 11337 X-Redmine-Issue-Author: rosenfeld X-Redmine-Issue-Assignee: matz X-Redmine-Sender: rosenfeld X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS6jccrG88TX4orjIKdrDJzYC+ESWQMCV1/ttE A4w9I0Jdiyh70oIXENTh5y7L2ubT/zx98MBAyWEE0RqYyUx83AR9j1SBIB95VSh52/trm3WTOu0la8 ygal70KJWBEXKwfyTKY971d70BU3KUSbKGfd X-ML-Name: ruby-core X-Mail-Count: 69887 Subject: [ruby-core:69887] [Ruby trunk - Feature #11337] [Open] Allow rescue without begin inside blocks X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11337 has been reported by Rodrigo Rosenfeld Rosas. ---------------------------------------- Feature #11337: Allow rescue without begin inside blocks https://bugs.ruby-lang.org/issues/11337 * Author: Rodrigo Rosenfeld Rosas * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- While it's possible to have rescue's without begin in method definitions it's not possible to have the same facility inside blocks. For example, this is currently not possible: ~~~ 1.times do abc rescue p 'error' end ~~~ But this is possible ~~~ def a abc rescue p 'error' end ~~~ Would it be possible to also allow rescue without begin inside blocks too? -- https://bugs.ruby-lang.org/