Search   Feed   Browse   Add
Feed items 31 - 36 of 36 for September 2000

RFC 178 (v2) Lightweight Threads by Perl6 RFC Librarian - September 4, 2000

This and other RFCs are available on the web at http:dev.perl.orgrfc=head1 TITLELightweight Threads=head1 VERSION Maintainer: Steven McDougall <swmcdworld.std.com> Date: 30 Aug 2000 Last Modified: 02 Sep 2000 Version: 2 Mailing List: perl6-language-flowperl.org Number: 178 Status: Developing=head1 ABSTRACTA lightweight thread model for Perl.=over 4=item All threads see the same compiled subroutines=item All threads share the same global variables=item Threads can create...
http://www.nntp.perl.org/group/perl.perl6.language.flow/2000/09/msg303.html

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go by Tom Christiansen - September 4, 2000

>package main;>sub fn return (3, 5, 7) >tie $x, &39;MaiTai&39;;>$x = fn;>$ tmpfoo>STORE: 7>Why don&39;t I see three STOREsBecause Perl is too clever to bother. :-)--tom
http://www.nntp.perl.org/group/perl.perl6.language.flow/2000/09/msg302.html

Re: The distinction between "do BLOCK while COND" and "EXPRwhile COND" should go by Peter Scott - September 4, 2000

At 06:49 AM 9300 -0600, Tom Christiansen wrote:> > sub fn return (3,5,7) > > $x = fn; I want $x==3>>Why should it return the first one It returns the last one!>It&39;s just doing what you told it, which was:>> $x = 3;> $x = 5;> $x = 7;It does What&39;s happening here, then$ cat tmpfoo!usrbinperl -wlpackage MaiTai;sub TIESCALAR bless $_1 sub FETCH print "FETCH"; $$_0 sub STORE print "STORE: ",...
http://www.nntp.perl.org/group/perl.perl6.language.flow/2000/09/msg301.html

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go by Chaim Frenkel - September 4, 2000

>>>>> "TC" == Tom Christiansen <tchristchthon.perl.com> writes:TC> You will be miserable until you learn the difference betweenTC> scalar and list context, because certain operators know whichTC> context they are in, and return a list in contexts wanting aTC> list, but a scalar value in contexts wanting a scalar.TC> It sounds that you&39;ve not yet eradicated the misery of, well, ifTC> not ignorance, then at least of...
http://www.nntp.perl.org/group/perl.perl6.language.flow/2000/09/msg300.html

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go by Tom Christiansen - September 4, 2000

>Then please explain why scalar(return (1,2,3)) doesn&39;t do what at first>glance it seems it should.Because X(Y) != Y(X). You should have written "return scalar" if you wanted to return a scalar.>And for the life of me I can&39;t see how> $x=(1,2, (3,4,fn,6) ) >fn ends up in scalar context.Technically, it&39;s in void context, which I suppose you mightreasonably lump in as scalar context. It&39;s in void context becauseyou aren&39;t going to be using any possible...
http://www.nntp.perl.org/group/perl.perl6.language.flow/2000/09/msg299.html

Re: The distinction between "do BLOCK while COND" and "EXPR while COND" should go by Chaim Frenkel - September 4, 2000

>>>>> "TC" == Tom Christiansen <tchristchthon.perl.com> writes:TC> Oh. You want lists to act like arrays. That&39;s a very big change.Do you have any objection The intended avoidance of flattening to aslate as possible might have that effect.>> You are letting the scalar context of the caller to bleed through the return>> and effect the _syntatic_ meaning of the comma.TC> So what I just find it jarring. If scalar fn( (1,2,3) ) doesn&39;t make..
http://www.nntp.perl.org/group/perl.perl6.language.flow/2000/09/msg298.html
Available Archives
- September (36 items)
- November (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact