[perl #71354] Types not correctly used?

2009-12-16 Thread Philipp Marek
# New Ticket Created by "Philipp Marek" # Please include the string: [perl #71354] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=71354 > I've got a small testcase attached, with the working way commented. It seems that th

[perl #71356] [TODO] Implement 'is readonly' for private attributes in Rakudo

2009-12-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #71356] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=71356 > rakudo: class A { has $!b is readonly = "foo" }; A.new rakudo 55f51d: ( no output )

[perl #71362] [BUG] Parrot string indexing semantics leaks through when accessing $1 et al. when $/ contains a Str in Rakudo

2009-12-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #71362] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=71362 > rakudo: $/ = "abc"; say $1 rakudo 55f51d: b␤ hihi. * masak submits rakudobug rakudo:

[perl #71366] problem with optional positional parameters in sub MAIN

2009-12-16 Thread via RT
# New Ticket Created by Heikki Mehtänen # Please include the string: [perl #71366] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=71366 > Hey, There seems to be problem with Rakudo handling optional positional parameters i

[perl #71364] [TODO] Implement .Rat in Rat in Rakudo

2009-12-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #71364] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=71364 > rakudo: (11/10).Rat rakudo 55f51d: Method 'Rat' not found for invocant of class 'Rat'

[perl #71368] [BUG] Rakudo allows 'when' block outside of a topicalizer block, shouldn't

2009-12-16 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #71368] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=71368 > std: when 42 { say "This should fail" } std 29347: ok 00:01 106m␤ ...because S04 says

[perl #71364] tests available

2009-12-16 Thread kyleha
This is an automatically generated mail to inform you that tests are now available in t/spec/S32-num/rat.t commit bd03a1f10d092b98deab3e0643dd54227cf3aef9 Author: moritz Date: Wed Dec 16 20:14:00 2009 + [t/spec] tests for RT #71364, and that === works on Rats git-svn-id: http

Comments on S32/Numeric#Complex

2009-12-16 Thread Dave Whipp
The definition of the Complex type seems a little weak. A few things: To get the Cartesian components of the value there are two methods ("re" and "im"). In contrast there is just one method "polar" to return the polar components of the value I'm not sure that this asymmetry is a good thing. C

Re: Comments on S32/Numeric#Complex

2009-12-16 Thread Jon Lang
On Wed, Dec 16, 2009 at 2:10 PM, Dave Whipp wrote: > The definition of the Complex type seems a little weak. A few things: > > To get the Cartesian components of the value there are two methods ("re" and > "im"). In contrast there is just one method "polar" to return the polar > components of the

Re: Comments on S32/Numeric#Complex

2009-12-16 Thread Moritz Lenz
Dave Whipp wrote: > The definition of the Complex type seems a little weak. A few things: > > To get the Cartesian components of the value there are two methods ("re" > and "im"). In contrast there is just one method "polar" to return the > polar components of the value Not quite, .abs returns

Re: Comments on S32/Numeric#Complex

2009-12-16 Thread Doug McNutt
At 00:15 +0100 12/17/09, Moritz Lenz wrote: >Not quite, .abs returns one of the polar coordinates (the magnitude), so >only a method is missing that returns the angle. > >Any ideas for a good name? In pre-computer times the angle was called the "argument". But that offers plenty of room for confu

Re: Comments on S32/Numeric#Complex

2009-12-16 Thread yary
> At 00:15 +0100 12/17/09, Moritz Lenz wrote: >>Not quite, .abs returns one of the polar coordinates (the magnitude), so >>only a method is missing that returns the angle. >> >>Any ideas for a good name? Would a method called "phi" with a unicode synonym "φ" be too obtuse? -y

Re: Comments on S32/Numeric#Complex

2009-12-16 Thread Dave Whipp
Moritz Lenz wrote: our multi method polar (Complex $nim: --> [ Real $mag where 0..Inf, Real $angle where -π ..^ π ]) is export { ... } If you put this into a signature, it is checked on every call to that method and thus slows down execution. If you want a formalization that's not part of th

Re: Comments on S32/Numeric#Complex

2009-12-16 Thread Dave Whipp
yary wrote: At 00:15 +0100 12/17/09, Moritz Lenz wrote: Not quite, .abs returns one of the polar coordinates (the magnitude), so only a method is missing that returns the angle. Any ideas for a good name? Would a method called "phi" with a unicode synonym "φ" be too obtuse? Anything wrong

Re: Comments on S32/Numeric#Complex

2009-12-16 Thread Brandon S. Allbery KF8NH
On Dec 16, 2009, at 19:46 , Dave Whipp wrote: yary wrote: At 00:15 +0100 12/17/09, Moritz Lenz wrote: Not quite, .abs returns one of the polar coordinates (the magnitude), so only a method is missing that returns the angle. Any ideas for a good name? Would a method called "phi" with a unicod