Project

General

Profile

Actions

Backport #8008

closed

super's implicit args behavior with keyword args

Added by nov (nov matake) about 11 years ago. Updated almost 11 years ago.


Description

I thought this sample says "Year!" 3 times, but actually, keyword args are't passed to super.
https://gist.github.com/nov/5075185

Is this intended behavior?
If so, please ignore this issue.

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

  • Category set to core
  • Assignee set to nobu (Nobuyoshi Nakada)
  • Target version set to 2.1.0

Definitely a bug.

Actions #2

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

  • Status changed from Open to Closed
  • % Done changed from 0 to 100

This issue was solved with changeset r39627.
nov, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


compile.c: zsuper keyword args

  • compile.c (iseq_compile_each): pass keyword arguments to zsuper,
    with current values. [ruby-core:53114] [Bug #8008]
Actions #3

Updated by nobu (Nobuyoshi Nakada) about 11 years ago

  • Tracker changed from Bug to Backport
  • Project changed from Ruby master to Backport200
  • Category deleted (core)
  • Status changed from Closed to Assigned
  • Assignee changed from nobu (Nobuyoshi Nakada) to nagachika (Tomoyuki Chikanaga)
  • Target version deleted (2.1.0)
Actions #4

Updated by nagachika (Tomoyuki Chikanaga) almost 11 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r39914.
nov, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 39627: [Backport #8008]

* compile.c (iseq_compile_each): pass keyword arguments to zsuper,
  with current values.  [ruby-core:53114] [Bug #8008]

Updated by nagachika (Tomoyuki Chikanaga) almost 11 years ago

  • Status changed from Closed to Assigned

I'm so sorry r39914 introduce compile error on ruby_2_0_0.
r39627 depend on r39626. I'll merge r39626.

Updated by nagachika (Tomoyuki Chikanaga) almost 11 years ago

Hmm... r39626 cannot be merged cleanly.
I'll temporary revert r39914.

Actions #7

Updated by nagachika (Tomoyuki Chikanaga) almost 11 years ago

  • Status changed from Assigned to Closed

This issue was solved with changeset r39917.
nov, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.


merge revision(s) 39625,39626: [Backport #8008]

compile.c: calc in int

* compile.c (iseq_compile_each): calculate argc as int, not as Fixnum.
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0