# New Ticket Created by "Carl Mäsak"
# Please include the string: [perl #118067]
# in the subject line of all future correspondence about this issue.
# <URL: https://rt.perl.org:443/rt3/Ticket/Display.html?id=118067 >
<dagurval> r: class A is DateTime { proto method new($) {*} }; A.new
<camelia> rakudo 8d2ec9: OUTPUT«Not enough positional parameters
passed; got 1 but expected 2 in method new [...]»
<dagurval> r: class A is DateTime { proto method new($) {*} }; A.new(now)
<camelia> rakudo 8d2ec9: OUTPUT«Null PMC access in get_pmc_keyed()
in method new [...]»
<dagurval> that looks like implementation leak though
<gfldex> Null PMC is parroty way to say segfault
<masak> it's basically always wrong, unless you're doing weird MOP stuff.
* masak submits rakudobug
<arnsholt> I'd go so far as saying a Null PMC error is always a bug,
unless you happen to know it's not =)
<masak> r: class A is Any { proto method new($) {*} }; A.new(now)
<camelia> rakudo 8d2ec9: OUTPUT«Null PMC access in get_pmc_keyed()
in method new [...]»
<masak> ok, not related to DateTime. phew.
<dagurval> :)