Search   Feed   Browse   Add
Feed items 31 - 38 of 38 for June 2008

Type of literals by Moritz Lenz - June 26, 2008

In the test suite there are some tests like this:is(1.WHAT, &39;Int&39;, &39;1 as a literal is an Int);This seems to imply that we guarantee the direct type of literals. Butdo weActually I see no need for that. All my programs work fine if theliteral 1 is of type Foo, and Foo isa Int.What&39;s our policy on that Will a 1.WHAT always return Int do weguarantee (1..4).WHAT always to be &39;Range&39;Cheers,Moritz-- Moritz Lenzhttp:moritz.faui2k3.org http:perl-6.de
http://www.nntp.perl.org/group/perl.perl6.language/2008/06/msg29309.html

Re: perl 56230 PATCH Multimethods for Complex. by Moritz Lenz - June 26, 2008

Another question:Vasily Chekalkin (via RT) wrote:> +.sub &39;sqrt&39; :multi(Complex)> + .param pmc a> + a = sqrt a> + .return (a)> +.endDo we actually want a sqrt(Complex) Somebody who is sufficientlymathematically educated to work with complex numbers should now thatsqrt() is ambigous, because there are two possible results, and willrevert to roots() for that.Any thoughtsMoritz-- Moritz Lenzhttp:moritz.faui2k3.org http:perl-6.de
http://www.nntp.perl.org/group/perl.perl6.language/2008/06/msg29308.html

Re: .join on Array by Moritz Lenz - June 26, 2008

Patrick R. Michaud wrote:> Following up to a thread on p6c regarding method fallbacks and .join:> > What should 1,3,5.join(&39;-&39;) produceI&39;m pretty sure it should be &39;1-3-5&39;, because 1,3,5 is an Array ref> How about (1,3,5, 20).join(&39;-&39;) Probably the same as (1,3,5, 20).join(&39;-&39;)> Thanks!> > Pm-- Moritz Lenzhttp:moritz.faui2k3.org http:perl-6.de
http://www.nntp.perl.org/group/perl.perl6.language/2008/06/msg29307.html

.join on Array by Patrick R. Michaud - June 26, 2008

Following up to a thread on p6c regarding method fallbacks and .join: What should 1,3,5.join(&39;-&39;) produce How about (1,3,5, 20).join(&39;-&39;) Thanks!Pm
http://www.nntp.perl.org/group/perl.perl6.language/2008/06/msg29306.html

Re: Building Junctions from Junctions by Jon Lang - June 23, 2008

I&39;d say that this ought to be implemented using :v (as in, &39;values&39;;cf. :k, :kv, and :p for lists and hashes): this should let you look atthe values within the Junction as if they were merely a list ofvalues, at which point you can construct a new Junction from them.-- Jonathan "Dataweaver" Lang
http://www.nntp.perl.org/group/perl.perl6.language/2008/06/msg29305.html

Building Junctions from Junctions by Ovid - June 23, 2008

Hi all,I use Perl6::Junction in Perl 5 and recently the author implemented the"values" method on junctions. I needed this because I sometimes findthat I need to do something conceptually similar to this: my $number = any( 0 .. 19 ); while ($number->values) my $rand int(rand(20)); if ( $number == $random_number ) handle some task and discard the number $number = any( grep $_ != $rand $number->values ); In other words, sometimes I have code which...
http://www.nntp.perl.org/group/perl.perl6.language/2008/06/msg29304.html

svn:perl6-synopsis r14556 - doctrunkdesignsyn by larry - June 21, 2008

Author: larryDate: Sat Jun 21 18:28:14 2008New Revision: 14556Modified: doctrunkdesignsynS03.podLog:clarifications requested by pmichaud++Modified: doctrunkdesignsynS03.pod==============================================================================--- doctrunkdesignsynS03.pod (original)+++ doctrunkdesignsynS03.pod Sat Jun 21 18:28:14 2008 -12,9 +12,9 Maintainer: Larry Wall <larrywall.org> Date: 8 Mar 2004- Last Modified: 11 Jun 2008+ Last Modified: 21 Jun 2008 Number: 3- ...
http://www.nntp.perl.org/group/perl.perl6.language/2008/06/msg29303.html

Re: <before ...> and <after ... > in S05 by Larry Wall - June 21, 2008

On Sat, Jun 21, 2008 at 01:59:28PM -0700, cognominal wrote:: C<before> and <after> being zero width assertions , I think they must: always be called with: a question mark. This is not the case line 394 and 1537.: Perljam suggested that a zero width assertion can be also a capturing: one and that: could explain the dropping of the question mark. I don&39;t agree with: that suggestion.I see little reason to prohibit use of -less <before> to mean capture.If someone is looking to.
http://www.nntp.perl.org/group/perl.perl6.language/2008/06/msg29302.html
Available Archives
- June (38 items)
- July (2 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact