Project

General

Profile

Actions

Feature #17721

open

Proc.new should be able to contruct a lambda

Added by bughit (bug hit) 8 months ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:102834]

Description

since procs and lambdas are of the same type, as long as Proc::new exists, it should be able to create either.

class Proc
  def augment
    self.class.new lambda? do 
      call
    end
  end
end

No data to display

Actions

Also available in: Atom PDF