è©°ã¾ã£ãã®ã§ã¡ã¢ã overloadã使ç¨ãã¦ããã¢ã¸ã¥ã¼ã«ãç¶æ¿ãã¦Class::C3ã®reinitialize(initialize)ã使ãã¨ãã°ããClass::C3ã®ãã¼ã¸ã§ã³ã¯ææ°ã®0.14 package Atest; use overload ( q{fallback} => 1, q{""} => 'str', ); sub str { return 'Atest str'; } package Btest; use Class::C3; use base qw/Atest/; Class::C3::reinitialize(); my $obj = bless {} , 'Btest'; # ã¨ã©ã¼ã«ãªã ãããå®è¡ããã¨blessæã«ã Can't resolve method "???" overloading """" in package "overload" ã¨
{{#tags}}- {{label}}
{{/tags}}