FAQ

Search Discussions

61 discussions - 804 posts

  • Hi, First of all, thanks very much for the Synopsis 6 (very beautifull indeed). Some simple random questions: - Variable types: 1st) Can we use variable types in subroutines signatures?? 2nd) In: sub ...
    Angel FausAngel Faus
    Apr 10, 2003 at 11:13 pm
    Apr 22, 2003 at 5:55 pm
  • Since my mail server has been down for a week, I've had a lot of time to look through Perl 6 as it stands, without being concerned with "current issues." I'll do them one-message-at-a-time (and ...
    Luke PalmerLuke Palmer
    Apr 1, 2003 at 2:26 am
    Apr 8, 2003 at 3:44 pm
  • OK, let's start over, if we can. Forget the object stuff, forget the A12 stuff, forget the automatic coercions from one type to another. Let's just take the simplest possible cases re A2, A3. So some ...
    Michael LazzaroMichael Lazzaro
    Apr 18, 2003 at 7:02 pm
    Apr 28, 2003 at 1:55 pm
  • A couple nights ago I read RFC93 as discussed in Apoc. 5 and got fired up- it reminded me of some ideas from when I was hacking Henry Spencer's regexp package. How to futher generalize regular ...
    Yary HluchanYary Hluchan
    Apr 2, 2003 at 6:27 am
    Apr 10, 2003 at 10:51 pm
  • I forget if this was covered earlier, but what is the reason for this? I can easily imagine wanting to create subroutines that only accept named parameters, some or all of which are required. How ...
    John SiracusaJohn Siracusa
    Apr 11, 2003 at 11:48 pm
    Apr 16, 2003 at 4:54 pm
  • Updated: I've now separated things into various levels of 'lossyness', to more clearly show the relationships between types. It is possible that we may want to allow some 'groups' of conversions, and ...
    Michael LazzaroMichael Lazzaro
    Apr 24, 2003 at 5:55 pm
    May 7, 2003 at 5:35 pm
  • Ok, this is strange to me. multi handle_event ($window, $event: $mode) {...} # two invocants Does that mean I can assume $event is a valid object of some sort? .stuff() is still going to default to ...
    PaulPaul
    Apr 11, 2003 at 3:11 pm
    Apr 14, 2003 at 6:55 pm
  • Did I miss something and the if statement syntax changed, or is there a typo in S6? (Or did I never understand the if statement syntax to begin with, which is always a possiblity) On page 2, ...
    Buddha BuckBuddha Buck
    Apr 11, 2003 at 4:18 pm
    May 8, 2003 at 5:38 pm
  • The problem with that is it's not giving an explicit return type, therefore forcing runtime typechecking when you use that returned value. I'd like an approach that correctly asserted the value of ...
    Michael LazzaroMichael Lazzaro
    Apr 23, 2003 at 5:09 pm
    Apr 29, 2003 at 2:00 pm
  • I've had an idea brewing for a while, and since talk seems to have turned to reg^H^H^Hpatterns and rules again, I figured this might be the time to mention it. A while ago someone asked about whether ...
    Adam D. LoprestoAdam D. Lopresto
    Apr 3, 2003 at 2:42 pm
    Apr 9, 2003 at 9:40 am
  • I was reading S6, and I realised: sub foo { while ($a = $iter.next) { &_($a); # &_ is foo } } sub bar { for @array - $a { &_($a); # &_ is NOT bar } } Yes, they're silly examples, but I'm sure that ...
    Dave WhippDave Whipp
    Apr 11, 2003 at 2:31 am
    Apr 18, 2003 at 4:55 am
  • Another one of my little annonyances in the current state of P6 is how run-time properties are accessed. Accessing properties as methods is pretty, but I see it as potentially dangerous. Adding a new ...
    Luke PalmerLuke Palmer
    Apr 3, 2003 at 6:51 pm
    Apr 9, 2003 at 2:56 pm
  • A follow-up... more specifically, how it would solve our problems, and fixing that dumbass syntax issue I botched in the last message. Suppose you had a class that you attached a bunch of _output_ ...
    Michael LazzaroMichael Lazzaro
    Apr 21, 2003 at 5:07 pm
    Apr 22, 2003 at 9:55 pm
  • Ok, here's what's been itching my brain. P5: === # bad code used for example: # version 1 # $obj- foo(\@attrs,@vals); sub foo { my $self = shift; local *bar = $self; # object is hashref my $lstref = ...
    PaulPaul
    Apr 8, 2003 at 8:56 pm
    Apr 9, 2003 at 5:07 pm
  • Whoops, found an error already. Updated version: These are what conversions are _POSSIBLE_ to make automatic, not which ones _ARE_ automatic. That's what we need to decide. +: Automatic conversion, ...
    Michael LazzaroMichael Lazzaro
    Apr 23, 2003 at 7:36 pm
    Apr 23, 2003 at 10:36 pm
  • my $spot returns Dog; Although if I squint really hard I can see how 'returns' applies here, I do have to think about it, and it comes very close to conflicting with 'return'. Is it too late to ...
    David StorrsDavid Storrs
    Apr 15, 2003 at 6:21 pm
    Apr 16, 2003 at 1:41 pm
  • [Sorry about pipe symbol junk in my last post. Mozilla, mumble...] Thankyou Damian and Allison for S6. Larry has previously noted that assumptions should probably be a binding rather than a value ...
    Ralph mellorRalph mellor
    Apr 11, 2003 at 8:58 am
    Apr 14, 2003 at 3:54 pm
  • I was having fun with a game of life over on perl monks (node_id=253366) -- writing "real" Perl6 code -- and I realised there were a few things that I wanted arrays/loops to do, that I'm not entirely ...
    Dave WhippDave Whipp
    Apr 27, 2003 at 12:49 am
    Apr 27, 2003 at 9:51 pm
  • =head1 Static typing with Interfaces In Perl 6, the drive to add strict static typing seems like a bad decision, according to this article: http://ootips.org/static-typing.html What they're saying is ...
    Luke PalmerLuke Palmer
    Apr 17, 2003 at 7:40 pm
    Apr 19, 2003 at 10:22 pm
  • [Sorry about pipe symbol junk in my last post. Mozilla, mumble...] When I first saw the variable/value type syntax, it didn't feel quite right to me. This feeling hasn't left me in the month or two ...
    Ralph mellorRalph mellor
    Apr 11, 2003 at 8:41 am
    Apr 17, 2003 at 4:12 pm
  • Ok, one thing that has amused me (maybe this is a tiny contribution to the "What sux about Perl thread?) is that if I know that I'll always want *these* six use() statements in virtually every ...
    PaulPaul
    Apr 28, 2003 at 2:04 pm
    Apr 29, 2003 at 1:50 pm
  • Some changes, and comments re: possible approaches. +: Automatic conversion, conversion is not lossy *: undefness and properties will be lost N: numeric range or precision may be lost [1] F: numeric ...
    Michael LazzaroMichael Lazzaro
    Apr 28, 2003 at 5:31 pm
    May 6, 2003 at 6:29 am
  • I have a question about, well, initializations outside of control flow (bet you would never have guessed that from the subject line!). Specifically, I'm considering the case where shared variables ...
    Mark J. ReedMark J. Reed
    Apr 15, 2003 at 2:35 pm
    Apr 16, 2003 at 8:44 pm
  • Ok, perhaps the one thing I've missed most in P5 that you get in C: struct { int someInt; float someFloat; char strdata[42]; float otherFloat; char moreStr[123]; } buf; fread(buf,sizeof buf,1,fp); ...
    PaulPaul
    Apr 23, 2003 at 3:11 pm
    Apr 28, 2003 at 4:29 pm
  • If I say: %hash = ( A = 1, B = 2, C = 3); $a = all(%hash.keys); $a = $a & none('A'); Does $a.states now return ('B', 'C') ? =Austin
    Austin HastingsAustin Hastings
    Apr 23, 2003 at 8:37 pm
    Apr 23, 2003 at 10:29 pm
  • S6: === <quote The unary prefix operator * flattens its operand (which allows the elements of an array to be used as an argument list). The * operator also causes its operand -- and any subsequent ...
    PaulPaul
    Apr 22, 2003 at 9:51 pm
    Apr 23, 2003 at 1:47 pm
  • The Perl 6 Summary for the week ending 20030413 Another week passes, another summary gets written. How does he do it? We start, as per usual with the still very quiet perl6-internals list. hey sexy ...
    Piers CawleyPiers Cawley
    Apr 14, 2003 at 7:16 pm
    Apr 23, 2003 at 12:02 am
  • Directly from S6 under "Pointy subs": ===================================== : for @list - $elem { # Same as: for @list, sub ($elem) { : print "$elem\n"; # print "$elem\n"; : } # } Ok, no problem.... ...
    PaulPaul
    Apr 22, 2003 at 5:18 pm
    Apr 22, 2003 at 8:45 pm
  • I notice that the type coercion thread seems to be getting value and reference types mushed together, which strikes me as potentially an issue. If, for example, you have this code: $a = new Foo; $b = ...
    Dan SugalskiDan Sugalski
    Apr 17, 2003 at 5:11 pm
    Apr 17, 2003 at 6:56 pm
  • I'm trying to understand the effects of the binding operator, particular as it relates to exportation. 1. I think that $new := $old; @new := @old; %new := %old; each perform aliasing operations, ...
    Mark Jason DominusMark Jason Dominus
    Apr 13, 2003 at 7:01 pm
    Apr 14, 2003 at 2:21 am
  • While my last post was about removing entities, this one will be about adding them. Now, I don't know what Larry has up his sleeve in this respect, but as I see it now, C<is is too heavily ...
    Luke PalmerLuke Palmer
    Apr 1, 2003 at 2:28 am
    Apr 7, 2003 at 4:49 pm
  • I've seen that in the summaries lot's of times, and had no clue as to what it referred. I finally managed to scratch up a small spare tuit, and looked it up. Brian Warnock? :) Is ...
    PaulPaul
    Apr 25, 2003 at 6:07 pm
    May 24, 2003 at 1:22 am
  • I was with you up to _fast_. My original encounter with small types was in the context of being I<small -- a small type takes just exactly how many bits you think it does. This was advertised as ...
    Austin HastingsAustin Hastings
    Apr 29, 2003 at 9:28 pm
    May 2, 2003 at 12:41 am
  • Is probing to be a complete and utter bastard to write. Summarizing all the 'types' threads with you lot all talking at crossed porpoises is hurting my brain. Hopefully something will hit the list ...
    Piers CawleyPiers Cawley
    Apr 22, 2003 at 4:51 pm
    Apr 29, 2003 at 6:09 pm
  • No, I wasn't singing in the subject line. :) Fair warning, there's a fairly long preliminary babbly here before I get to the point....feel free to skip to the end if you like. For that matter, feel ...
    PaulPaul
    Apr 25, 2003 at 4:19 pm
    Apr 26, 2003 at 4:48 am
  • Ok, in P5: sub foo ($) { print "@_\n"; } # one scalar expected foo(1,2); # error so I assume in P6: sub foo ($x) { print $x } # one scalar expected foo(1,2); # error Right? Just verifying my frame ...
    PaulPaul
    Apr 22, 2003 at 8:11 pm
    Apr 22, 2003 at 9:17 pm
  • ok, i have seen the term submethod but still haven't fully grokked how it differs from sub and method. sub is basically the same as p5. method is sub inside a class and it can be inherited. if you ...
    Uri GuttmanUri Guttman
    Apr 11, 2003 at 7:40 pm
    Apr 14, 2003 at 12:51 am
  • everyone, I just thought I'd throw out a programming problem that I have, and see about people's ideas on how to implement it in perl6. I'm making an engine to do process restart.. That is, at each ...
    Edward PeschkoEdward Peschko
    Apr 22, 2003 at 10:27 pm
    Apr 26, 2003 at 10:14 pm
  • I started this before MikeL started his summary of a few days back. I finished well after. Guess who's the better writer? I've gone into the wayback machine (about 2 years) for some of this stuff, ...
    Austin HastingsAustin Hastings
    Apr 23, 2003 at 4:12 am
    Apr 23, 2003 at 6:21 pm
  • Regarding the issue of whether to allow "to" coercions or "from" coercions, or both, and the issue of whether the "to" or the "from" coercion should take precedence if they're both defined...the ...
    Damian ConwayDamian Conway
    Apr 21, 2003 at 1:53 am
    Apr 21, 2003 at 5:25 pm
  • The Perl 6 Summary for the week ending 20030406 Welcome my friends to the show that never ends. Yes, it's another of Piers Cawley's risible attempts to summarize the week's happenings in the Perl 6 ...
    Piers CawleyPiers Cawley
    Apr 8, 2003 at 6:56 am
    Apr 10, 2003 at 3:25 pm
  • From S6: ---- The call to .wrap returns a unique identifier that can later be passed to the .unwrap method, to undo the wrapping: &thermo.unwrap($id); ---- Can we add a suppressable warning (similar ...
    David StorrsDavid Storrs
    Apr 16, 2003 at 2:44 pm
    Apr 16, 2003 at 5:00 pm
  • Simple question, and it does (eventually) relate to A6. . . My question is about literals, and their types (value-types, of course, since literals don't have containers in any normal sense of the ...
    Deborah Ariel PickettDeborah Ariel Pickett
    Apr 14, 2003 at 12:58 am
    Apr 15, 2003 at 3:23 am
  • [quote] Operator names can be any sequence of Unicode characters. For example: sub infix:(c) ($text, $owner) { return $text but Copyright($owner) } [/quote] From this I infer that the lexer must be ...
    Austin HastingsAustin Hastings
    Apr 11, 2003 at 6:53 pm
    Apr 14, 2003 at 4:01 pm
  • Speaking of which.... in P5, I always thought this was really wierd: my %h = ( a = 1, b = 2, c = 3 ); print join " ",%h,"\n"; { local $h{b} = "foo"; print join " ",%h,"\n"; } print join " ",%h,"\n"; ...
    PaulPaul
    Apr 9, 2003 at 1:53 pm
    Apr 9, 2003 at 4:04 pm
  • Yes, it is and we are -- but it all hinges on how autocoercions work. We can document something, but only when it's decided enough to document. :-P In fact, *every* section I've tried to write in the ...
    Michael LazzaroMichael Lazzaro
    Apr 23, 2003 at 7:15 pm
    Apr 23, 2003 at 9:42 pm
  • Breaking this out so as to avoid the dreaded "multiple questions" thread. --- Michael Lazzaro wrote: I used to believe this, but the interaction between the "efficient storage" and "variable types" ...
    Austin HastingsAustin Hastings
    Apr 23, 2003 at 6:16 pm
    Apr 23, 2003 at 6:33 pm
  • Given that I can unpack array parameters, per S6, can I similarly unpack hash parameters? sub foo( { name = $nm, language = $lang }, *@rest) { ... $nm ... $lang ... } This has the potential to be ...
    Austin HastingsAustin Hastings
    Apr 23, 2003 at 4:44 pm
    Apr 23, 2003 at 4:49 pm
  • ... but foo('bar'); Is this supposed to set the property 'foo' to the value 'bar'? Or to create a property with name being the value returned by the function call foo('bar') ? What is the correct ...
    Stéphane PayrardStéphane Payrard
    Apr 14, 2003 at 7:47 pm
    Apr 14, 2003 at 8:12 pm
  • Given the specification of macros as taking a "context" argument: macro foo is parsed(/somehow/) {...} this implies that there will be a published, documented list of contexts which macros will ...
    Austin HastingsAustin Hastings
    Apr 13, 2003 at 7:53 pm
    Apr 14, 2003 at 7:57 pm
Group Navigation
period‹ prev | Apr 2003 | next ›
Group Overview
groupperl6-language @
categoriesperl
discussions61
posts804
users59
websiteperl6.org

59 users for April 2003

Paul: 160 posts Luke Palmer: 102 posts Austin Hastings: 85 posts Mlazzaro: 61 posts Larry Wall: 37 posts Damian Conway: 26 posts Dan Sugalski: 24 posts Piers Cawley: 22 posts Ralph mellor: 22 posts Brent Dax: 20 posts John Williams: 20 posts John Siracusa: 18 posts David Storrs: 17 posts Dave Whipp: 16 posts Uri Guttman: 14 posts Jonathan Scott Duff: 13 posts Joseph F. Ryan: 12 posts Austin Hastings: 9 posts Yary Hluchan: 9 posts Arcadi shehter: 8 posts
show more
Archives