New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When overriding .gist, it's all or nothing #3562
Comments
From john@johnkingsley.caHi, When I define a gist() method, it doesn't get called when I expected it to be called. This occurs when you call gist() not on the object directly, but instead So if you are defining a gist() method on your class, you pretty much The problem is here in the core: Test below, with output. cheers, John $ perl6 -v Test:#!/usr/bin/env perl6 class Coord { class Route1 { class Route2 { my $r1 = Route1.new(loc => [Coord.new(x => 0, y => 0), Coord.new(x => 0, y => 1)]); my $r2 = Route2.new(loc => [Coord.new(x => 0, y => 0), Coord.new(x => 0, y => 1)]);
|
From @zoffixznetOn Mon, 20 Oct 2014 09:00:24 -0700, john@johnkingsley.ca wrote:
FWIW, I tried the patch below, but that caused a bunch of spectest breakage from things that do assume that Mu.gist is implemented as Mu.perl. It's almost if it should be trying Foo.gist, if that's not available then Foo.perl, and only then go to Mu.perl, which is kinda messy. diff --git a/src/core/Mu.pm b/src/core/Mu.pm |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#123016 (status was 'open')
Searchable as RT123016$
The text was updated successfully, but these errors were encountered: