r31727 -[spec] Add Real.rand to spec, as it was already in the spectests and Rakudo. Change term:rand description to refer to it.

2010-07-16 Thread pugs-commits
Author: colomon Date: 2010-07-16 15:15:21 +0200 (Fri, 16 Jul 2010) New Revision: 31727 Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: [spec] Add Real.rand to spec, as it was already in the spectests and Rakudo. Change term:rand description to refer to it. Modified:

Suggested magic for a .. b

2010-07-16 Thread Aaron Sherman
Oh bother, I wrote this up last night, but forgot to send it. Here y'all go: I've been testing .. recently, and it seems, in Rakudo, to behave like Perl 5. That is, the magic auto-increment for a .. z works very wonkily, given any range that isn't within some very strict definitions (identical

Re: Suggested magic for a .. b

2010-07-16 Thread yary
On Fri, Jul 16, 2010 at 9:40 AM, Aaron Sherman a...@ajs.com wrote: For example: Ab .. Be defines the ranges: A B and b c d e This results in a counting sequence (with the most significant character on the left) as follows: Ab Ac Ad Ae Bb Bc Bd Be Currently, Rakudo produces this:

r31735 -[spec] Say a bit about Numeric operators and Bridge.

2010-07-16 Thread pugs-commits
Author: colomon Date: 2010-07-16 20:39:33 +0200 (Fri, 16 Jul 2010) New Revision: 31735 Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: [spec] Say a bit about Numeric operators and Bridge. Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod

Re: r31735 -[spec] Say a bit about Numeric operators and Bridge.

2010-07-16 Thread Darren Duncan
pugs-comm...@feather.perl6.nl wrote: Author: colomon Date: 2010-07-16 20:39:33 +0200 (Fri, 16 Jul 2010) New Revision: 31735 Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: [spec] Say a bit about Numeric operators and Bridge. +Users who provide their own scalar real numeric

Re: Suggested magic for a .. b

2010-07-16 Thread Carl Mäsak
Aaron (): [...] Many useful results from this suggested change: C .. A = C B A (Rakudo: ) Regardless of the other traits of your proposed semantics, I think permitting reversed ranges such as the one above would be a mistake. Rakudo gives the empty list for ranges whose lhs exceeds (fsvo

Re: r31735 -[spec] Say a bit about Numeric operators and Bridge.

2010-07-16 Thread Minimiscience
On 16 Jul 2010, at 14:39, pugs-comm...@feather.perl6.nl wrote: Because all CReal types are well-ordered Oh, they are? Just how are we implementing that? http://en.wikipedia.org/wiki/Well-order says that the de facto standard foundations of mathematics are insufficient to define a formula

r31736 -[Numeric] fix typo and a technicality pointed out by Minimiscience++

2010-07-16 Thread pugs-commits
Author: lwall Date: 2010-07-17 00:10:05 +0200 (Sat, 17 Jul 2010) New Revision: 31736 Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod Log: [Numeric] fix typo and a technicality pointed out by Minimiscience++ Modified: docs/Perl6/Spec/S32-setting-library/Numeric.pod

r31737 -[S02,S06] change YOU_ARE_HERE to {YOU_ARE_HERE} to better represent the UNIT block

2010-07-16 Thread pugs-commits
Author: lwall Date: 2010-07-17 00:41:33 +0200 (Sat, 17 Jul 2010) New Revision: 31737 Modified: docs/Perl6/Spec/S02-bits.pod docs/Perl6/Spec/S06-routines.pod Log: [S02,S06] change YOU_ARE_HERE to {YOU_ARE_HERE} to better represent the UNIT block Modified: docs/Perl6/Spec/S02-bits.pod

Re: Suggested magic for a .. b

2010-07-16 Thread Michael Zedeler
On 2010-07-16 18:40, Aaron Sherman wrote: Oh bother, I wrote this up last night, but forgot to send it. Here y'all go: I've been testing .. recently, and it seems, in Rakudo, to behave like Perl 5. That is, the magic auto-increment for a .. z works very wonkily, given any range that isn't

Re: Suggested magic for a .. b

2010-07-16 Thread Jon Lang
Aaron Sherman wrote: Oh bother, I wrote this up last night, but forgot to send it. Here y'all go: I've been testing .. recently, and it seems, in Rakudo, to behave like Perl 5. That is, the magic auto-increment for a .. z works very wonkily, given any range that isn't within some very

Re: Suggested magic for a .. b

2010-07-16 Thread Aaron Sherman
On Fri, Jul 16, 2010 at 1:14 PM, yary not@gmail.com wrote: There is one case where Rakudo's current output makes more sense then your proposal, and that's when the sequence is analogous to a range of numbers in another base, and you don't want to start at the equivalent of '' or end