FAQ

Search Discussions

44 discussions - 175 posts

  • E.g. see <http://www.perlmonks.org/?node_id=703265 : sub bar { return 100; } sub foo { 50;} sub foo-bar { return rand(50); } if (foo - bar != foo-bar) { print "Haha!\n"; }
    John M. DlugoszJohn M. Dlugosz
    Aug 11, 2008 at 3:35 am
    Aug 20, 2008 at 7:09 pm
  • This weekend I wrote <http://www.dlugosz.com/Perl6/web/Infinity_romp.html which explains the Inf features of Perl 6, but drills down each example to reach the most fundamental language features, ...
    John M. DlugoszJohn M. Dlugosz
    Aug 5, 2008 at 5:33 am
    Aug 8, 2008 at 1:08 pm
  • Has the "err" operator, as a low-precidence version of //, been removed? It's not mentioned in S03, and the semantics of "orelse" is different. Is "orelse" supposed to be a direct replacement, ...
    John M. DlugoszJohn M. Dlugosz
    Aug 31, 2008 at 9:28 pm
    Sep 7, 2008 at 6:51 pm
  • Author: larry Date: Fri Aug 8 10:34:49 2008 New Revision: 14574 Modified: doc/trunk/design/syn/S02.pod Log: allow isolated ' and - in identifiers (only if followed by alpha) Modified: ...
    LarryLarry
    Aug 8, 2008 at 5:34 pm
    Aug 13, 2008 at 8:29 am
  • Lets say I want to find the 5th smallest element in an array. I might write: @array.sort.[4]; How does the implementation of the sort function know that I just want to 5th item (and thus choose an ...
    Dave WhippDave Whipp
    Aug 29, 2008 at 8:22 pm
    Sep 1, 2008 at 7:53 pm
  • Hi, I am currently reviewing bits of the spec surrounding multiple dispatch and, of course, have a question or two (I'll probably have some more later, as the dust settles in my head). 1) The spec ...
    Jonathan WorthingtonJonathan Worthington
    Aug 5, 2008 at 4:17 pm
    Aug 6, 2008 at 2:33 pm
  • Easier said than done. Question to p6l: do && and || autothread? Or do they collapse the junction prior to evaluation? (I hope the latter, since I think it's more dwimmy). Also do prefix:<? and ...
    Moritz LenzMoritz Lenz
    Aug 24, 2008 at 7:22 pm
    Aug 27, 2008 at 9:18 am
  • In a little language that I wrote some time ago, I found it very useful to let the // operator catch exceptions: f(x) // g(y) does: * If f(x) returns a defined value, use this value. * If f(x) ...
    Yaakov BelchYaakov Belch
    Aug 6, 2008 at 3:59 pm
    Aug 8, 2008 at 4:19 pm
  • Hi List -- I'v started playing around with perl 6, and I am having problems with this example: use v6; sub xsum (@list) { my $i = 0; print "summing: "; for @list { $i += $_; print $_,","; } say " = ...
    Andy ColsonAndy Colson
    Aug 22, 2008 at 9:34 pm
    Aug 22, 2008 at 11:13 pm
  • There are quite a few tests in the spectest suite that make mention of "arrayref" and "hashref", and that expect things to work like references do in Perl 5. I'd like to get some ...
    Patrick R. MichaudPatrick R. Michaud
    Aug 18, 2008 at 6:38 pm
    Aug 20, 2008 at 6:56 pm
  • I was trying to figure out exactly how Captures manage to stay invisible even though functions return them, yet still let you use Capture objects when you want to. Please see my conclusions at ...
    John M. DlugoszJohn M. Dlugosz
    Aug 8, 2008 at 1:02 pm
    Aug 11, 2008 at 4:20 am
  • What is the difference between (1,2,3) and [1,2,3] ? --John
    John M. DlugoszJohn M. Dlugosz
    Aug 9, 2008 at 2:53 am
    Aug 9, 2008 at 7:26 pm
  • Hi, There is in the spectests this example: my $text = "abc"; my %ret; %ret = map { $_ = uc $_; }, split "", $text; is ~%ret.kv, "a A b B c C", "= works in a map block"; However, it seems from S06: ...
    Jonathan WorthingtonJonathan Worthington
    Aug 7, 2008 at 8:24 pm
    Aug 11, 2008 at 8:09 am
  • Why is 3;3;3 a list of captures rather than a list of lists? --John
    John M. DlugoszJohn M. Dlugosz
    Aug 9, 2008 at 3:06 am
    Aug 9, 2008 at 7:18 pm
  • See my latest creation at <http://www.dlugosz.com/Perl6/web/APL.html
    John M. DlugoszJohn M. Dlugosz
    Aug 7, 2008 at 9:47 am
    Aug 8, 2008 at 7:59 am
  • So do they have to go at the end of the whole expression in the current grammar? I don't follow about the spaces. Do you write $a lt:lc $b le:lc $c or $a lt :lc $b le :lc $c or $a lt $b :lc le $c :lc ...
    John M. DlugoszJohn M. Dlugosz
    Aug 7, 2008 at 9:45 am
    Aug 7, 2008 at 6:06 pm
  • I've edited several of the S??.pod files,but I have not heard back from the owner ($Larry, whose name is on the top of the file) about accepting merging or rejecting my changes. I've posted the files ...
    John M. DlugoszJohn M. Dlugosz
    Aug 2, 2008 at 11:05 pm
    Aug 5, 2008 at 3:04 pm
  • In S05, I found this regarding the generalized repetition specifier: <alt ** '|' # repetition controlled by presence of character I tried it out with rule thislist { <alpha ** '|' }; and got (with ...
    Stephen SimmonsStephen Simmons
    Aug 31, 2008 at 2:33 pm
    Sep 6, 2008 at 2:53 am
  • Yesterday I got bitten by the fact that currently in Rakudo, $/ doesn't copy content from the matched string, but instead trusts that it stays in the matched string and doesn't change. Is this the ...
    Carl MäsakCarl Mäsak
    Aug 23, 2008 at 10:45 am
    Aug 23, 2008 at 1:24 pm
  • There are no barewords in Perl 6, but it seems new method is an exception: class Dog { has $name; method bark () { say $name; } } my $p = Dog.new($name = 'boo'); $p.bark; #error! my $p = Dog.new( ...
    Xiao YafengXiao Yafeng
    Aug 22, 2008 at 5:53 am
    Aug 23, 2008 at 12:24 am
  • Hi $Larry et al, I brought this up as a question at YAPC::EU and found to my surprise that no one seems to have thought of it yet. This is the mail I said I’d write. (And apologies, Larry. :-) ) ...
    Aristotle PagaltzisAristotle Pagaltzis
    Aug 20, 2008 at 10:15 pm
    Aug 21, 2008 at 9:05 pm
  • I wrote <http://www.dlugosz.com/Perl6/web/return.html to clarify and extrapolate from what is written in the Synopses. --John
    John M. DlugoszJohn M. Dlugosz
    Aug 9, 2008 at 7:51 am
    Aug 12, 2008 at 2:02 pm
  • How is @array[*-2] supposed to be implemented? S09<v28 // reported again 8-Aug-2008 Is this magic known to the parser at a low level, or is it possible to define your own postcircumfix operators that ...
    John M. DlugoszJohn M. Dlugosz
    Aug 9, 2008 at 2:42 am
    Aug 10, 2008 at 6:48 pm
  • Author: larry Date: Fri Aug 8 07:59:12 2008 New Revision: 14573 Modified: doc/trunk/design/syn/S02.pod doc/trunk/design/syn/S06.pod doc/trunk/design/syn/S13.pod Log: clarify that &foo is a real ...
    LarryLarry
    Aug 8, 2008 at 2:59 pm
    Aug 8, 2008 at 11:26 pm
  • I'm trying to do a Perl script (PC has Perl5 installed) in a BAT file which will open the CMD prompt, interact with the user and copy files from one location to other directories. Does anyone know ...
    TaraTara
    Aug 7, 2008 at 1:38 pm
    Aug 8, 2008 at 7:45 am
  • What about adverbs on reduction operators? [lt :lc] $a,$b,$c # all in decreasing order --John
    John M. DlugoszJohn M. Dlugosz
    Aug 7, 2008 at 10:04 am
    Aug 8, 2008 at 4:17 am
  • Does that mean that traits can come before the signature? Or should it be corrected to method close () is export { ... } ?
    John M. DlugoszJohn M. Dlugosz
    Aug 5, 2008 at 9:31 am
    Aug 6, 2008 at 3:25 pm
  • I just put together <http://www.dlugosz.com/Perl6/web/class-declarators.html as part of my analysis and documentation effort. I'll link the "meanings" to more extensive treatments. Did I miss any ...
    John M. DlugoszJohn M. Dlugosz
    Aug 11, 2008 at 6:33 am
    Aug 11, 2008 at 12:55 pm
  • 1) How do you declare a private method? I see how you call one, but not how to define one. 1b) Is the intent that $!foo without an explicit invocant refers to self, as opposed to $.bar or .bar which ...
    John M. DlugoszJohn M. Dlugosz
    Aug 9, 2008 at 8:49 am
    Aug 9, 2008 at 4:22 pm
  • According to S02, "The word returns is allowed as an alias for of." and "The as property specifies a constraint to be enforced on the return value ..., is not advertised as the type of the routine" ...
    John M. DlugoszJohn M. Dlugosz
    Aug 2, 2008 at 6:51 am
    Aug 2, 2008 at 4:32 pm
  • In S04, the "Exceptions" section mentions that $! contains multiple exceptions. So what type is it? Why isn't it @! ? I says that they are thrown as a single new exception. So what type is that new ...
    John M. DlugoszJohn M. Dlugosz
    Aug 31, 2008 at 9:13 pm
    Aug 31, 2008 at 9:13 pm
  • I have changed files at <http://www.dlugosz.com/Perl6/offerings/ waiting for someone in authority to merge.
    John M. DlugoszJohn M. Dlugosz
    Aug 31, 2008 at 5:45 pm
    Aug 31, 2008 at 5:45 pm
  • Author: larry Date: Thu Aug 21 13:38:48 2008 New Revision: 14577 Modified: doc/trunk/design/syn/S12.pod Log: Clarification that categories change the choice of dispatcher on method names Modified: ...
    LarryLarry
    Aug 21, 2008 at 8:38 pm
    Aug 21, 2008 at 8:38 pm
  • Author: larry Date: Thu Aug 21 12:58:24 2008 New Revision: 14576 Modified: doc/trunk/design/syn/S12.pod Log: remove failover from methods to subs Modified: doc/trunk/design/syn/S12.pod ...
    LarryLarry
    Aug 21, 2008 at 7:58 pm
    Aug 21, 2008 at 7:58 pm
  • On behalf of the Parrot team, I'm proud to announce Parrot 0.7.0 "Severe Macaw." Parrot (http://parrotcode.org/) is a virtual machine aimed at running all dynamic languages. Parrot 0.7.0 is available ...
    Bob RogersBob Rogers
    Aug 19, 2008 at 7:10 pm
    Aug 19, 2008 at 7:10 pm
  • Author: larry Date: Tue Aug 19 12:03:51 2008 New Revision: 14575 Modified: doc/trunk/design/syn/S02.pod Log: P5ism noted by moritz++ Modified: doc/trunk/design/syn/S02.pod ...
    LarryLarry
    Aug 19, 2008 at 7:03 pm
    Aug 19, 2008 at 7:03 pm
  • I discovered a small p5ism in S02. Patch below. (My copy of S02 might be a bit out of date, though. Sorry, I've been offline for a while). --- Syntax.pod.old 2008-08-13 19:48:21.000000000 +0200 +++ ...
    Moritz LenzMoritz Lenz
    Aug 14, 2008 at 3:59 pm
    Aug 14, 2008 at 3:59 pm
  • Around line 477, it explains that our $count; method ^count { return $count } Such a I<metaclass method is always delegated to the C<HOW object just as methods like C<.does are, so it's possible to ...
    John M. DlugoszJohn M. Dlugosz
    Aug 13, 2008 at 9:01 am
    Aug 13, 2008 at 9:01 am
  • our $.var — class attribute, accessor, inheritable. our $!var — class attribute, no accessor, inheritable. If the second form has no accessor, how can it be inheritable?
    John M. DlugoszJohn M. Dlugosz
    Aug 11, 2008 at 6:07 am
    Aug 11, 2008 at 6:07 am
  • Hi, S29 says: "Returns a |Time| object. There are a number of uses for this object, all of which can be found in the documentation for |Time|." However, I don't see that documentation in S29, and ...
    Jonathan WorthingtonJonathan Worthington
    Aug 7, 2008 at 11:46 am
    Aug 7, 2008 at 11:46 am
  • HaloO, the smart match table in S03 has the Any ~~ Num meaning numeric equality. But shouldn't that be a bit fuzzier? E.g. a match $x ~~ $num should check abs($x - $num) < epsilon with an epsilon ...
    TSaTSa
    Aug 6, 2008 at 3:16 pm
    Aug 6, 2008 at 3:16 pm
  • Author: audreyt Date: Tue Aug 5 02:43:49 2008 New Revision: 14572 Modified: doc/trunk/design/syn/S12.pod Log: * Typo spotted by John M. Dlugosz++: method close is export () { ... } # Wrong method ...
    AudreytAudreyt
    Aug 5, 2008 at 9:43 am
    Aug 5, 2008 at 9:43 am
  • Author: audreyt Date: Tue Aug 5 02:38:33 2008 New Revision: 14571 Modified: doc/trunk/design/syn/S02.pod Log: * S02: A few more C<... an C<<... blocks, Contributed by John M. Dlugosz++. Modified: ...
    AudreytAudreyt
    Aug 5, 2008 at 9:38 am
    Aug 5, 2008 at 9:38 am
  • In S12, "So when you say "Dog", you're referring to both a package and a protoobject, that latter of which points to the actual object representing the class via HOW." Does that mean that the object ...
    John M. DlugoszJohn M. Dlugosz
    Aug 5, 2008 at 9:16 am
    Aug 5, 2008 at 9:16 am
Group Navigation
period‹ prev | Aug 2008 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions44
posts175
users41
websiteperl6.org

41 users for August 2008

John M. Dlugosz: 41 posts Larry Wall: 15 posts TSa: 13 posts Moritz Lenz: 10 posts Patrick R. Michaud: 7 posts Brandon S. Allbery KF8NH: 6 posts Mark J. Reed: 6 posts Larry: 5 posts Aristotle Pagaltzis: 5 posts Bob Rogers: 5 posts Jonathan Worthington: 5 posts Jon Lang: 5 posts Audrey Tang: 4 posts TSa (Thomas Sandlaß): 4 posts Austin Hastings: 3 posts Chromatic: 3 posts Ron: 3 posts Audreyt: 2 posts Andy Colson: 2 posts Carl Mäsak: 2 posts
show more
Archives