Search Discussions
-
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 Faus
Apr 10, 2003 at 11:13 pm
Apr 22, 2003 at 5:55 pm -
76
== vs. eq
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 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 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 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 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 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 ...
Paul
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 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 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. 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 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 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 Lazzaro
Apr 21, 2003 at 5:07 pm
Apr 22, 2003 at 9:55 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 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 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 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 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 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 mellor
Apr 11, 2003 at 8:41 am
Apr 17, 2003 at 4:12 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 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. 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); ...
Paul
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 Hastings
Apr 23, 2003 at 8:37 pm
Apr 23, 2003 at 10:29 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 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.... ...
Paul
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 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 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 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 ...
Paul
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 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 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 ...
Paul
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 ...
Paul
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 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 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 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 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 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 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 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 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"; ...
Paul
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 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 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 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 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 Hastings
Apr 13, 2003 at 7:53 pm
Apr 14, 2003 at 7:57 pm
Group Overview
group | perl6-language |
categories | perl |
discussions | 61 |
posts | 804 |
users | 59 |
website | perl6.org |
59 users for April 2003
Archives
- May 2016 (16)
- April 2016 (4)
- March 2016 (6)
- February 2016 (20)
- January 2016 (28)
- December 2015 (20)
- November 2015 (12)
- October 2015 (51)
- September 2015 (35)
- April 2015 (15)
- March 2015 (28)
- February 2015 (35)
- January 2015 (49)
- December 2014 (24)
- November 2014 (18)
- October 2014 (43)
- September 2014 (82)
- August 2014 (58)
- July 2014 (16)
- June 2014 (28)
- May 2014 (63)
- April 2014 (53)
- March 2014 (53)
- February 2014 (21)
- January 2014 (19)
- December 2013 (48)
- November 2013 (110)
- October 2013 (35)
- September 2013 (31)
- August 2013 (40)
- July 2013 (48)
- June 2013 (53)
- May 2013 (39)
- April 2013 (20)
- March 2013 (31)
- February 2013 (22)
- January 2013 (15)
- December 2012 (6)
- November 2012 (10)
- October 2012 (12)
- September 2012 (25)
- August 2012 (16)
- July 2012 (45)
- June 2012 (38)
- May 2012 (35)
- April 2012 (61)
- March 2012 (68)
- February 2012 (39)
- January 2012 (25)
- December 2011 (15)
- November 2011 (12)
- October 2011 (13)
- September 2011 (24)
- August 2011 (62)
- July 2011 (31)
- June 2011 (29)
- May 2011 (17)
- April 2011 (5)
- March 2011 (25)
- February 2011 (22)
- January 2011 (20)
- December 2010 (25)
- November 2010 (124)
- October 2010 (101)
- September 2010 (63)
- August 2010 (104)
- July 2010 (219)
- June 2010 (91)
- May 2010 (110)
- April 2010 (171)
- March 2010 (152)
- February 2010 (154)
- January 2010 (65)
- December 2009 (87)
- November 2009 (89)
- October 2009 (169)
- September 2009 (173)
- August 2009 (324)
- July 2009 (157)
- June 2009 (158)
- May 2009 (415)
- April 2009 (128)
- March 2009 (331)
- February 2009 (457)
- January 2009 (306)
- December 2008 (270)
- November 2008 (130)
- October 2008 (110)
- September 2008 (188)
- August 2008 (175)
- July 2008 (70)
- June 2008 (125)
- May 2008 (204)
- April 2008 (425)
- March 2008 (141)
- February 2008 (86)
- January 2008 (140)
- December 2007 (153)
- November 2007 (53)
- October 2007 (19)
- September 2007 (69)
- August 2007 (22)
- July 2007 (22)
- June 2007 (239)
- May 2007 (164)
- April 2007 (106)
- March 2007 (171)
- February 2007 (166)
- January 2007 (175)
- December 2006 (69)
- November 2006 (122)
- October 2006 (301)
- September 2006 (306)
- August 2006 (329)
- July 2006 (183)
- June 2006 (113)
- May 2006 (239)
- April 2006 (314)
- March 2006 (90)
- February 2006 (183)
- January 2006 (193)
- December 2005 (196)
- November 2005 (307)
- October 2005 (613)
- September 2005 (338)
- August 2005 (412)
- July 2005 (505)
- June 2005 (410)
- May 2005 (913)
- April 2005 (635)
- March 2005 (640)
- February 2005 (440)
- January 2005 (72)
- December 2004 (249)
- November 2004 (151)
- October 2004 (34)
- September 2004 (290)
- August 2004 (207)
- July 2004 (335)
- June 2004 (188)
- May 2004 (172)
- April 2004 (403)
- March 2004 (217)
- February 2004 (221)
- January 2004 (180)
- December 2003 (166)
- November 2003 (193)
- October 2003 (46)
- September 2003 (104)
- August 2003 (100)
- July 2003 (78)
- June 2003 (106)
- May 2003 (306)
- April 2003 (804)
- March 2003 (523)
- February 2003 (137)
- January 2003 (635)
- December 2002 (425)
- November 2002 (570)
- October 2002 (837)
- September 2002 (447)
- August 2002 (385)
- July 2002 (238)
- June 2002 (187)
- May 2002 (215)
- April 2002 (493)
- March 2002 (72)
- February 2002 (80)
- January 2002 (290)
- December 2001 (34)
- November 2001 (33)
- October 2001 (417)
- September 2001 (210)
- August 2001 (185)
- July 2001 (277)
- June 2001 (290)
- May 2001 (638)
- April 2001 (503)
- March 2001 (186)
- February 2001 (595)
- January 2001 (151)
- December 2000 (28)
- November 2000 (6)
- October 2000 (307)
- September 2000 (1,508)
- August 2000 (3,476)