From: "Wolfgang Nádasi-Donner" Date: 2009-03-09T02:41:55+09:00 Subject: [ruby-core:22748] [Feature #1256] Add constant TAILRECURSION to let a program recognize if tail recursion optimization is implemented Feature #1256: Add constant TAILRECURSION to let a program recognize if tail recursion optimization is implemented http://redmine.ruby-lang.org/issues/show/1256 Author: Wolfgang N��dasi-Donner Status: Open, Priority: Normal Category: core, Target version: 1.9.x Ruby 1.9 has the possibility to support tail recursion optimization for methods and proc objects. Due to technical problems it cannot be easy implemented for every VM or platform, which will support Ruby 1.9 functionality. Tail recursion optimization is an implementation detail and not a language feature in general. I propose to supply a constant TAILRECURSION, which will be set to "true" if this feature is implemented, otherwise "false". ---------------------------------------- http://redmine.ruby-lang.org