diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | proc.c | 8 |
2 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,7 @@ +Fri Jun 22 19:33:49 2007 Tanaka Akira <akr@fsij.org> + + * proc.c (proc_to_s): show is_lambda. + Thu Jun 21 20:36:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org> * hash.c (rb_hash_sort): remove hash specific implementation. @@ -552,12 +552,14 @@ proc_to_s(VALUE self) if (iseq->insn_info_tbl) { line_no = iseq->insn_info_tbl[0].line_no; } - str = rb_sprintf("#<%s:%lx@%s:%d>", cname, self, + str = rb_sprintf("#<%s:%lx@%s:%d%s>", cname, self, RSTRING_PTR(iseq->filename), - line_no); + line_no, + proc->is_lambda ? " (lambda)" : ""); } else { - str = rb_sprintf("#<%s:%p>", cname, proc->block.iseq); + str = rb_sprintf("#<%s:%p%s>", cname, proc->block.iseq, + proc->is_lambda ? " (lambda)" : ""); } if (OBJ_TAINTED(self)) { |