Re: Known Bug in Rakudo?

2008-11-05 Thread Patrick R. Michaud
On Thu, Oct 30, 2008 at 08:03:17AM -0700, Ovid wrote: This code: class Point { has $.x is rw; has $.y is rw; method get_string () { return $.x, $.y; } } my Point $point .= new( :x1.2, :y-3.7 ); say $point.x; say $point; Generates this

Re: Known Bug in Rakudo?

2008-10-30 Thread Moritz Lenz
Ovid wrote: This code: class Point { has $.x is rw; has $.y is rw; method get_string () { The correct way to define user-defined stringfication is either through method Str { ... } or method prefix:~ ($self: ) { ... } (afaict both are not implemented in Rakudo

Re: Known Bug in Rakudo?

2008-10-30 Thread Mark J. Reed
On Thu, Oct 30, 2008 at 12:46 PM, Moritz Lenz [EMAIL PROTECTED] wrote: The correct way to define user-defined stringfication is either through method Str { ... } or method prefix:~ ($self: ) { ... } (afaict both are not implemented in Rakudo yet) Yeah, I can't even declare a method that

Re: Known Bug in Rakudo?

2008-10-30 Thread Patrick R. Michaud
On Thu, Oct 30, 2008 at 05:46:11PM +0100, Moritz Lenz wrote: I think that every class should have a default stringification. Dunno if there's a ticket for it yet. I don't think there's a _spec_ for a default stringification yet. So we should probably propose that first, and then see about

Re: Known Bug in Rakudo?

2008-10-30 Thread Moritz Lenz
Patrick R. Michaud wrote: On Thu, Oct 30, 2008 at 05:46:11PM +0100, Moritz Lenz wrote: I think that every class should have a default stringification. Dunno if there's a ticket for it yet. I don't think there's a _spec_ for a default stringification yet. So we should probably propose