Re: What's MY.line?

2002-07-11 Thread Robert Spier
Chip Salzenberg writes: >Ouch. I gather, then, that nntp.perl.org does not house complete list >archives, or else the discussion was not on p6-language ... ? It should have complete archives. It uses the same backend data as the html version on archive.develooper.com.

Re: %MY (was What's MY.line?)

2002-07-11 Thread Richard Clamp
On Thu, Jul 11, 2002 at 04:43:34PM -0400, Melvin Smith wrote: > And side effects like "I call you, you modify me invisibly" seems > more like taking dangerous drugs than programming. > > Yep, I warned you about calling that routine, now look what it did to > your brains. Um, I shouldn't real

Re: Perl6 grammar (take V)

2002-07-11 Thread Sean O'Rourke
It's time for my weekly post to this old thread. The grammar has grown enough to deserve more than one file, and is starting to change in new directions. For example, it's now Turing-complete, if you have a Parrot engine and a bit of spare time. Call it a primitive "demo version" of some of Per

Re: %MY (was What's MY.line?)

2002-07-11 Thread Dan Sugalski
At 4:43 PM -0400 7/11/02, Melvin Smith wrote: >The only real use I can see of %MY is debugging. If people are going >to take handles to pads and modify lexicals in closures, continuations >and routines from the outside, it probably means that the item needs to >be a class. Yeah, I'm expecting it

Re: What's MY.line?

2002-07-11 Thread Dan Sugalski
At 11:45 PM +0100 7/11/02, Dave Mitchell wrote: >On Thu, Jul 11, 2002 at 10:37:27PM +0100, Nicholas Clark wrote: >> Is there any specific case where you can't treat >> >> { >>my $foo = 12; >>print $foo; >>my $foo = "ho"; >>print $foo; >> } >> >> as >> >> { >>my $foo = 12;

Re: What's MY.line?

2002-07-11 Thread Dave Mitchell
On Thu, Jul 11, 2002 at 10:37:27PM +0100, Nicholas Clark wrote: > Is there any specific case where you can't treat > > { > my $foo = 12; > print $foo; > my $foo = "ho"; > print $foo; > } > > as > > { > my $foo = 12; > print $foo; > { > my $foo = "ho"; > print $foo; > } >

Re: What's MY.line?

2002-07-11 Thread Nicholas Clark
On Thu, Jul 11, 2002 at 03:18:27PM -0400, Dan Sugalski wrote: > At 7:35 PM +0100 7/11/02, Dave Mitchell wrote: > >On Thu, Jul 11, 2002 at 02:29:08PM -0400, Dan Sugalski wrote: > >> At 7:18 PM +0100 7/11/02, Dave Mitchell wrote: > >> >On Thu, Jul 11, 2002 at 10:41:20AM -0400, Dan Sugalski wrote: >

Re: What's MY.line?

2002-07-11 Thread Dan Sugalski
At 9:18 PM +0100 7/11/02, Tim Bunce wrote: >On Thu, Jul 11, 2002 at 02:29:08PM -0400, Dan Sugalski wrote: >> At 7:18 PM +0100 7/11/02, Dave Mitchell wrote: >> >On Thu, Jul 11, 2002 at 10:41:20AM -0400, Dan Sugalski wrote: >> >> The place where you'll run into problems in where you have multipl

%MY (was What's MY.line?)

2002-07-11 Thread Melvin Smith
At 01:08 PM 7/11/2002 -0700, Ashley Winters wrote: >On Thursday 11 July 2002 11:47 am, Chip Salzenberg wrote: > > According to Dan Sugalski: > > > At 9:50 PM -0400 7/9/02, Chip Salzenberg wrote: > > > >3a. If so, how can one distinguish among the e.g. many C > > > >variables declared w

Re: What's MY.line?

2002-07-11 Thread Tim Bunce
On Thu, Jul 11, 2002 at 02:29:08PM -0400, Dan Sugalski wrote: > At 7:18 PM +0100 7/11/02, Dave Mitchell wrote: > >On Thu, Jul 11, 2002 at 10:41:20AM -0400, Dan Sugalski wrote: > >> The place where you'll run into problems in where you have multiple > >> variables of the same name at the same lev

Re: What's MY.line?

2002-07-11 Thread Ashley Winters
On Thursday 11 July 2002 11:47 am, Chip Salzenberg wrote: > According to Dan Sugalski: > > At 9:50 PM -0400 7/9/02, Chip Salzenberg wrote: > > >3a. If so, how can one distinguish among the e.g. many C > > >variables declared within the current function? > > > > One pad per block, rathe

Re: What's MY.line?

2002-07-11 Thread Chip Salzenberg
According to Dan Sugalski: > At 9:50 PM -0400 7/9/02, Chip Salzenberg wrote: > >3a. If so, how can one distinguish among the e.g. many C > >variables declared within the current function? > > One pad per block, rather than per sub. I just remembered why I thought that woundn't work:

Re: What's MY.line?

2002-07-11 Thread Dan Sugalski
At 7:35 PM +0100 7/11/02, Dave Mitchell wrote: >On Thu, Jul 11, 2002 at 02:29:08PM -0400, Dan Sugalski wrote: >> At 7:18 PM +0100 7/11/02, Dave Mitchell wrote: >> >On Thu, Jul 11, 2002 at 10:41:20AM -0400, Dan Sugalski wrote: >> >> The place where you'll run into problems in where you have mul

Re: What's MY.line?

2002-07-11 Thread Dan Sugalski
At 2:47 PM -0400 7/11/02, Chip Salzenberg wrote: >According to Dan Sugalski: >> At 9:50 PM -0400 7/9/02, Chip Salzenberg wrote: >> >3a. If so, how can one distinguish among the e.g. many C >> >variables declared within the current function? >> >> One pad per block, rather than per

Re: What's MY.line?

2002-07-11 Thread Dave Mitchell
On Thu, Jul 11, 2002 at 02:29:08PM -0400, Dan Sugalski wrote: > At 7:18 PM +0100 7/11/02, Dave Mitchell wrote: > >On Thu, Jul 11, 2002 at 10:41:20AM -0400, Dan Sugalski wrote: > >> The place where you'll run into problems in where you have multiple > >> variables of the same name at the same lev

Re: What's MY.line?

2002-07-11 Thread Dan Sugalski
At 7:18 PM +0100 7/11/02, Dave Mitchell wrote: >On Thu, Jul 11, 2002 at 10:41:20AM -0400, Dan Sugalski wrote: >> The place where you'll run into problems in where you have multiple >> variables of the same name at the same level, which you can do in >> perl 5. > >can it? Yes. >can you give an

Re: What's MY.line?

2002-07-11 Thread Dave Mitchell
On Wed, Jul 10, 2002 at 11:57:02PM -0400, Chip Salzenberg wrote: > According to Dave Mitchell: > > Based on what I rememeber from the long threads about this, > > Ouch. I gather, then, that nntp.perl.org does not house complete list > archives, or else the discussion was not on p6-language ... ?

Re: What's MY.line?

2002-07-11 Thread Dave Mitchell
On Thu, Jul 11, 2002 at 10:41:20AM -0400, Dan Sugalski wrote: > The place where you'll run into problems in where you have multiple > variables of the same name at the same level, which you can do in > perl 5. can it? can you give an example? -- In England there is a special word which means

Re: What's MY.line?

2002-07-11 Thread Chip Salzenberg
According to Dan Sugalski: > One pad per block, rather than per sub. Because, of course, all blocks are subs. Got it. -- Chip Salzenberg - a.k.a. -<[EMAIL PROTECTED]> "It furthers one to have somewhere to go."

Re: What's MY.line?

2002-07-11 Thread Chip Salzenberg
According to Dave Mitchell: > Based on what I rememeber from the long threads about this, Ouch. I gather, then, that nntp.perl.org does not house complete list archives, or else the discussion was not on p6-language ... ? > sub import { > caller(1).MY{'&foo'} = sub { ... }; > } G

Re: What's MY.line?

2002-07-11 Thread Dan Sugalski
At 11:52 PM -0400 7/10/02, Chip Salzenberg wrote: >According to Dan Sugalski: >> One pad per block, rather than per sub. > >Because, of course, all blocks are subs. Got it. Yep. (Well, modulo optimizations of course ;) The place where you'll run into problems in where you have multiple variab

Re: What's MY.line?

2002-07-11 Thread Dan Sugalski
At 5:46 AM +0100 7/11/02, [EMAIL PROTECTED] wrote: >Dan Sugalski <[EMAIL PROTECTED]> writes: > >> At 4:24 PM +0100 7/10/02, [EMAIL PROTECTED] wrote: >> >Dan Sugalski <[EMAIL PROTECTED]> writes: >> > >> >> At 9:50 PM -0400 7/9/02, Chip Salzenberg wrote: >> >> >3. Is C<%MY> intended to re