From: mame@... Date: 2014-06-26T13:04:40+00:00 Subject: [ruby-core:63346] [ruby-trunk - Feature #4840] Allow returning from require Issue #4840 has been updated by Yusuke Endoh. Assignee changed from Yusuke Endoh to Nobuyoshi Nakada I trust nobu more than myself. Thank you! -- Yusuke Endoh ---------------------------------------- Feature #4840: Allow returning from require https://bugs.ruby-lang.org/issues/4840#change-47393 * Author: Rodrigo Rosenfeld Rosas * Status: Feedback * Priority: Normal * Assignee: Nobuyoshi Nakada * Category: * Target version: next minor ---------------------------------------- I have a situation where there is some code in Gitorious like: ~~~ruby unless defined? GitoriousConfig # tons of lines here end ~~~ And I would it to look like ~~~ruby return if defined? GitoriousConfig #tons of lines here ~~~ It would be great to allow return from a required file or some other keyword (break, etc or a new one) ---Files-------------------------------- feature-4840.odp (114 KB) 0001-compile.c-toplevel-return.patch (1.71 KB) -- https://bugs.ruby-lang.org/