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 E83871AA0B33 for ; Thu, 4 Aug 2016 03:50:21 +0900 (JST) Received: from voscc.nagaokaut.ac.jp (voscc.nagaokaut.ac.jp [133.44.1.100]) by kankan.nagaokaut.ac.jp (Postfix) with ESMTP id 5EAFBB5D8A9 for ; Thu, 4 Aug 2016 04:23:59 +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 55FA218CC80D for ; Thu, 4 Aug 2016 04:23:59 +0900 (JST) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id 5FAC11204D2; Thu, 4 Aug 2016 04:23:58 +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 CD4691204B8 for ; Thu, 4 Aug 2016 04:23:50 +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=8jHcakaVwib9ErH0djR2q19IiHY=; b=uwFPP592HFAzy8sLQi am+r6K3UaRHNZCe692XrQZuWkwO5/eyGpPf9lYWMtyytQ41dQbRTUtbGO991QwVN HIXcSHVvo8jPvWyFGiCREP1AoTDxZghTxBce9JwsTzqyza7lsKsO3mn4XEOBOQ+a K75irqXI0VeXx/7Bnev2Tpeeo= Received: by filter0634p1mdw1.sendgrid.net with SMTP id filter0634p1mdw1.8587.57A244B820 2016-08-03 19:23:36.451584276 +0000 UTC Received: from herokuapp.com (ec2-54-161-202-95.compute-1.amazonaws.com [54.161.202.95]) by ismtpd0006p1iad1.sendgrid.net (SG) with ESMTP id c_m_WCuATHqRO-bHVq2_bQ Wed, 03 Aug 2016 19:23:36.448 +0000 (UTC) Date: Wed, 03 Aug 2016 19:23:36 +0000 From: rr.rosas@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 51449 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/Ymy4QrNMhiuLXJG8OTL2vJD1yS7C8BuFbCP1jYuvPZGyIfqqyvWRY+06pJZ6gW w1CkrsCrf0HdIO1oB2xxoHebjdhhO3qY1B1bL751NGcjR7Z5lTJgp+2bHgtyd1wExtf2h511Y/o5HU +2etAICFCiP6YCb+sqMKfVmwEdhe4k6IQ6vrkyD8eOc6PUkSuuA6fVo3dA== X-ML-Name: ruby-core X-Mail-Count: 76686 Subject: [ruby-core:76686] [Ruby trunk Feature#11337] 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #11337 has been updated by Rodrigo Rosenfeld Rosas. http://www.redmine.org/projects/redmine/wiki/RedmineIssues "duplicates - Links issues so that closing one, will close the other (e.g. closing A will close B) For example, if issue B duplicates A: - closing B will leave A open - closing A will automatically close B duplicated by - Reciprocal of duplicates. For example, if issue A is duplicated by issue B: - closing B will leave A open - closing A will automatically close B" I'm not sure I completely understand this but it seems to be possible to close the duplicates without closing the original even though they would be automatically closed if using the right relation :) ---------------------------------------- Feature #11337: Allow rescue without begin inside blocks https://bugs.ruby-lang.org/issues/11337#change-59902 * 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/