Re: show all drive letters and labels

2022-02-10 Thread ToddAndMargo via perl6-users
On 2/10/22 02:25, Elizabeth Mattijsen wrote: Have you considered giving back to the community by putting this into a module (as well as the WinMessageBox and WinMount modules that it refers to, which I assume to be your private modules) and uploading it to the ecosystem? I have considered. O

Re: show all drive letters and labels

2022-02-10 Thread Elizabeth Mattijsen
> On 10 Feb 2022, at 11:10, ToddAndMargo via perl6-users > wrote: > That is an interesting module. I am not sure what > I would use it for though. Maybe in the future. > It is a method of find out what a drive is. > > What I was after was finding the drive letter that > corresponded to a logic

Re: show all drive letters and labels

2022-02-10 Thread ToddAndMargo via perl6-users
On 2/10/22 01:26, Elizabeth Mattijsen wrote: So I was really hoping for a built in system32 call. I really, really don't care for the the trouble associated with using the "C" interface to call system 32 dll's, but I may have to. One of the things that Raku tries to do, is to be ignorant about

Re: show all drive letters and labels

2022-02-10 Thread Elizabeth Mattijsen
> So I was really hoping for a built in system32 call. > I really, really don't care for the the trouble > associated with using the "C" interface to call > system 32 dll's, but I may have to. One of the things that Raku tries to do, is to be ignorant about the underlying OS. Having a system32 D

Re: show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
On 2/9/22 12:18, ToddAndMargo via perl6-users wrote: On 9 Feb 2022, at 12:37, ToddAndMargo via perl6-users wrote: Hi All, Windows 7,10,11 Do we have a command/function that will show all drive letter and their labels? Many thanks, -T On 2/9/22 04:05, Elizabeth Mattijsen wrote: > W

Re: show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
On 9 Feb 2022, at 12:37, ToddAndMargo via perl6-users wrote: Hi All, Windows 7,10,11 Do we have a command/function that will show all drive letter and their labels? Many thanks, -T On 2/9/22 04:05, Elizabeth Mattijsen wrote: > What would you use on a command-line to get t

Re: show all drive letters and labels

2022-02-09 Thread Elizabeth Mattijsen
drive > letter and their labels? > > Many thanks, > -T > > > -- > ~~ > Computers are like air conditioners. > They malfunction when you open windows > ~~

show all drive letters and labels

2022-02-09 Thread ToddAndMargo via perl6-users
Hi All, Windows 7,10,11 Do we have a command/function that will show all drive letter and their labels? Many thanks, -T -- ~~ Computers are like air conditioners. They malfunction when you open windows ~~

[perl #126200] LTA error message with misspelled labels

2015-09-26 Thread via RT
# New Ticket Created by Alex Jakimenko # Please include the string: [perl #126200] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126200 > Code: outer: loop { loop { last owter; } }; Result: ===SORRY!=== Error while compiling

[perl #120632] [BUG] Re-declaration of labels is a-OK with Rakudo

2013-11-26 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #120632] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=120632 > perl6: label1: say "OH HAI"; label1: say "OH NOES" rakudo-parrot 60c8c1, rakudo-jvm 60c

[perl #67660] Statement/loop labels are not implemented

2009-07-18 Thread via RT
# New Ticket Created by Minimiscience # Please include the string: [perl #67660] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=67660 > Rakudo is unable to parse the following program. It runs correctly if the "loopBlock

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-29 Thread Klaas-Jan Stol
#x27;s implicit like for "continue"). > > You're correct that PCT doesn't have support for 'goto' yet, and > yes, it will. However, the typical model for this is likely to > be based on control exceptions instead of using branches and labels. > To borr

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Bob Rogers
From: Larry Wall <[EMAIL PROTECTED]> Date: Thu, 24 Jan 2008 09:52:16 -0800 In addition to what Patrick said, which is all right on the mark, I'd like to point out a few additional subtleties. Perl borrows an important idea from Lisp and separates the notion of stack unwinding fr

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Larry Wall
o wrinkles for implementing goto the way Perl wants it. First, you have to collect the labels in each lexical scope and store them somewhere (along with their addresses) in case someone wants to goto them from some inner dynamic scope. (You can't just assume goto will come from an inner lexica

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread jerry gay
On Jan 24, 2008 9:02 AM, Patrick R. Michaud <[EMAIL PROTECTED]> wrote: > On Thu, Jan 24, 2008 at 11:58:02AM -0500, Mark J. Reed wrote: > > Sorry if I'm missing something here, since I haven't dived into the > > innards of Parrot, but I thought control flow in Parrot was based on > > continuations?

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Patrick R. Michaud
On Thu, Jan 24, 2008 at 11:58:02AM -0500, Mark J. Reed wrote: > Sorry if I'm missing something here, since I haven't dived into the > innards of Parrot, but I thought control flow in Parrot was based on > continuations? Presumably 'control exceptions' are really just > lexicaly-scoped exceptions,

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Mark J. Reed
Sorry if I'm missing something here, since I haven't dived into the innards of Parrot, but I thought control flow in Parrot was based on continuations? Presumably 'control exceptions' are really just lexicaly-scoped exceptions, and exceptions are in turn just outgoing-only continuations. If you h

Re: [PCT] PAST nodes for goto and friends, labels.

2008-01-24 Thread Patrick R. Michaud
Statements like "break", "next", "last", "continue" typically take a label > as an argument (or it's implicit like for "continue"). You're correct that PCT doesn't have support for 'goto' yet, and yes, it will.

[PCT] PAST nodes for goto and friends, labels.

2008-01-19 Thread Klaas-Jan Stol
ly take a label as an argument (or it's implicit like for "continue"). For a HLL, these "labels" are typically not visible for the programmer (although I think Perl does support this, with nested loops and labels). My idea is this: what if there's a :pasttype('got

Re: [PDD19] labels are not allowed for directives

2007-11-02 Thread Allison Randal
Klaas-Jan Stol wrote: PDD19 states that labels are not allowed for directives, which in practice means, that the following is not allowed: foo: .local int i It would be useful to add some rationale about this in the PDD, if it is really necessary; why is this limitation? Labels are

[PDD19] labels are not allowed for directives

2007-11-02 Thread Klaas-Jan Stol
PDD19 states that labels are not allowed for directives, which in practice means, that the following is not allowed: foo: .local int i It would be useful to add some rationale about this in the PDD, if it is really necessary; why is this limitation? I assume this limitation would then also go

[PDD19] add a note about where labels can be placed

2007-10-31 Thread Klaas-Jan Stol
hi, attached a patch indicating that labels may only be written within a compilation unit, which is more or less implied in the current description. it could be rephrased for style. kjs Index: docs/pdds/draft/pdd19_pir.pod

Re: [IMCC] add ".label" to lexer for macro labels

2007-10-02 Thread Bernhard Schmalhofer
Klaas-Jan Stol schrieb: I wonder in what case it's useful to have a "normal" .local directive in a macro (with its normal semantics). Every time the macro is expanded, the same local var. would be declared, which can't be good. As far as I understand it, PIR macros a simple text replacements w

Re: [IMCC] add ".label" to lexer for macro labels

2007-10-01 Thread Klaas-Jan Stol
On 10/2/07, Allison Randal <[EMAIL PROTECTED]> wrote: > > [EMAIL PROTECTED] wrote: > > > >>> The big overall cunning plan is to remove ".local" for this purpose > >>> (defining labels), and to use ".local" ONLY for declaring variab

Re: [IMCC] add ".label" to lexer for macro labels

2007-10-01 Thread Allison Randal
[EMAIL PROTECTED] wrote: The big overall cunning plan is to remove ".local" for this purpose (defining labels), and to use ".local" ONLY for declaring variables. Then, once all ".local" (in macros) are replaced by ".label", we can start replacing &q

Re: [IMCC] add ".label" to lexer for macro labels

2007-09-27 Thread parrotcode
On Sep 28, 12:45 am, [EMAIL PROTECTED] (Bernhard Schmalhofer) wrote: > Klaas-Jan Stol schrieb:> hi, > > > attached a patch that adds ".label" as a directive to declare labels > > in a macro. > Applied in r21624. thanks! > > > The big overall cunning

Re: [PATCH][IMCC] add ".label" to lexer for macro labels

2007-09-27 Thread Bernhard Schmalhofer
Klaas-Jan Stol schrieb: hi, attached a patch that adds ".label" as a directive to declare labels in a macro. Applied in r21624. The big overall cunning plan is to remove ".local" for this purpose (defining labels), and to use ".local" ONLY for declaring varia

[PATCH][IMCC] add ".label" to lexer for macro labels

2007-09-27 Thread Klaas-Jan Stol
hi, attached a patch that adds ".label" as a directive to declare labels in a macro. The big overall cunning plan is to remove ".local" for this purpose (defining labels), and to use ".local" ONLY for declaring variables. Then, once all ".local" (in

undefined labels and also #37590

2005-11-24 Thread Leopold Toetsch
I'm currently fixing #37590 and removed tons of code from imcc/pbc.c. The changes are causing a more strict error checking WRT label usage and a slight restriction WRT labels in PASM code: .pcc_sub foo: ... branch foo is now illegal. In practice there is probably always a get_params

Re: [perl #37703] [BUG] Branches to many undefined labels = PIR compiler segfault

2005-11-18 Thread Leopold Toetsch
Jonathan Worthington (via RT) wrote: Don't have time to track this down myself right now, but if you do parrot -o it.pbc it.pir With the attached, it segfaults. Thanks, fixed - r10089 leo

[perl #37703] [BUG] Branches to many undefined labels = PIR compiler segfault

2005-11-18 Thread via RT
f you do parrot -o it.pbc it.pir With the attached, it segfaults. Yes, I *know* the code won't run 'cus it's missing labels. I discovered this bug by accident - the PIR is actually being generated from a work-in-progress tool that didn't generate the destinations of the jumps at

Re: [perl #30997] pdb labels broken in tru64/alpha

2005-10-03 Thread Jarkko Hietaniemi
>> 1989 /* >>(dbx) >> >>The line->label is an impossible pointer, so deferencing causes promptly >>a bus error. >> >> >> > > > Jarkko, > > Can you restest and confirm that this is still an issue with pdb? These seems to have been fixed. > Thanks, > > -J > >

Re: LABELS: block

2005-05-03 Thread Juerd
... (I'd still like the bareword-ish labels to go away) Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_juerd_happy.html http://convolution.nl/gajigu_juerd_n.html

Re: LABELS: block

2005-05-02 Thread Larry Wall
On Tue, Apr 26, 2005 at 11:24:34AM -0600, Luke Palmer wrote: : That's true, but the former hasn't been accepted. That's not something : I considered when I was thinking about that proposal, but I think it's : a fairly minor issue. We'll ignore labels as we continue to w

Re: LABELS: block

2005-04-27 Thread Aaron Sherman
diom (syntactic complexity for semantic simplicity should indicate deprecated constructs, and as far as I know, no one is deprecating labels). * Tagging might be useful in other situations where a keyword would be useful for visually marking the construct. I have no

Re: LABELS: block

2005-04-26 Thread Dave Whipp
meter to the looping statement function for :label 1... { next "foo" }; This makes labels somewhat less general, but maybe C should be handled separately, anyway. For example, maybe you can only use C if you've asked to "use continuations;".

Re: LABELS: block

2005-04-26 Thread Juerd
Aaron Sherman skribis 2005-04-26 16:40 (-0400): > Is there ever a reason for a leading adverb in a statement or control > structure? List of pairs and left-to-right writing: :foo, :quux ==> map { ... } ==> my @baz; > or you could have a keyword that introduces the label: > rx/label +

Re: LABELS: block

2005-04-26 Thread Aaron Sherman
On Tue, 2005-04-26 at 13:24, Luke Palmer wrote: > [we'll] redo label syntax later if we must. Well, of course you run the danger of making it hard for people to recognize labels which are otherwise common across many languages, but here's a few ways you could do labels if you need

Re: LABELS: block

2005-04-26 Thread Luke Palmer
Juerd writes: > Luke Palmer skribis 2005-04-26 9:28 (-0600): > > Labels are pretty easy to pick out. I don't believe there is any other > > thing in the language that, at the beginning of a statement, matches > > /\w+\:/ . They are certainly available in Perl 6 (as are

Re: LABELS: block

2005-04-26 Thread Juerd
Luke Palmer skribis 2005-04-26 9:28 (-0600): > Labels are pretty easy to pick out. I don't believe there is any other > thing in the language that, at the beginning of a statement, matches > /\w+\:/ . They are certainly available in Perl 6 (as are plain old line > labels; we&#

Re: LABELS: block

2005-04-26 Thread Luke Palmer
Stevan Little writes: > Hello all, > > I have been going over the Synopsis, and I cannot find block labels > mentioned anywhere. I was under the impression that if it is not > mentioned, then it can be assumed to be the same as perl5. However, I > wonder if this is the case

LABELS: block

2005-04-26 Thread Stevan Little
Hello all, I have been going over the Synopsis, and I cannot find block labels mentioned anywhere. I was under the impression that if it is not mentioned, then it can be assumed to be the same as perl5. However, I wonder if this is the case with labels given that "everybody wants the

Re: Test labels

2004-12-08 Thread Mark Stosberg
> On Mon, Dec 06, 2004 at 10:28:45PM -0600, Andy Lester wrote: > I think even better than > > ok( $expr, "name" ); > > or > > ok( $expr, "comment" ); > > is > > ok( $expr, "label" ); > > RJBS points out that "comment" implies "not really worth doing", and I > still don't like "name" be

Re: Test labels

2004-12-07 Thread Stevan Little
I don't really agree that "comment" implies "not really worth doing". I think those inclined to not put a name/comment/label on their test will not do it whatever we end up calling it. IMO the only way to get people to do it would be to make it required, and I don't think that is a good idea. I

Re: Test labels

2004-12-07 Thread Steve Peters
On Mon, Dec 06, 2004 at 10:28:45PM -0600, Andy Lester wrote: > I think even better than > > ok( $expr, "name" ); > > or > > ok( $expr, "comment" ); > > is > > ok( $expr, "label" ); > > RJBS points out that "comment" implies "not really worth doing", and I > still don't like "name" beca

Re: Test labels

2004-12-07 Thread H.Merijn Brand
On Tue 07 Dec 2004 05:28, Andy Lester <[EMAIL PROTECTED]> wrote: > I think even better than > > ok( $expr, "name" ); > > or > > ok( $expr, "comment" ); > > is > > ok( $expr, "label" ); or ok ($expr, "indicator"); or ok ($expr, "tag"); for me the name/comment/label/tag/indicator/... is

Test labels

2004-12-06 Thread Andy Lester
I think even better than ok( $expr, "name" ); or ok( $expr, "comment" ); is ok( $expr, "label" ); RJBS points out that "comment" implies "not really worth doing", and I still don't like "name" because it implies (to me) a unique identifier. We also talked about "description", but "desc

[perl #32392] [BUG] IMCC - duplicate local labels create b0rked PASM

2004-11-09 Thread via RT
ith duplicate local labels. Also label fixup handling is different so just don't compile PIR files to PASM except for debugging. from imcc/BUGS

[perl #31160] [TODO] Make breakpoints at labels

2004-08-15 Thread via RT
# New Ticket Created by Will Coleda # Please include the string: [perl #31160] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=31160 > Make breakpoints at labels (From the TODO file)

[perl #30997] pdb labels broken in tru64/alpha

2004-08-08 Thread via RT
# New Ticket Created by Jarkko Hietaniemi # Please include the string: [perl #30997] # in the subject line of all future correspondence about this issue. # http://rt.perl.org:80/rt3/Ticket/Display.html?id=30997 > The PDB labels are somehow b0rked in tru64/alpha: (make pdb) kosh:/tmp/

Re: question about global labels in imcc

2004-01-19 Thread Dan Sugalski
At 12:16 PM -0800 1/19/04, TOGoS wrote: Hi. In IMCC, how can I get the address of a label in a different compilation unit? Don't. The only way to transfer control to code in a different compilation unit (arguably in a different sub in the same compilation unit) is via invoke or one of its relati

question about global labels in imcc

2004-01-19 Thread TOGoS
Hi. In IMCC, how can I get the address of a label in a different compilation unit? Is there a way to do this at compile time? I've looked through the latest docs but according to imcc/docs/parsing.pod, global labels get stored in global variables that you must look up at run time (yuck)

Re: IMCC bug: Sub names are not labels?

2003-07-15 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: [ bug ] I've fixed it somehow - still calling conventions stuff is missing. (the register allocator will happily globber the return continuation in the sub if not written explictely as P1). This works now: .sub _main newsub P0, .Sub, _foo # n

Re: IMCC bug: Sub names are not labels?

2003-07-15 Thread Leopold Toetsch
Luke Palmer <[EMAIL PROTECTED]> wrote: > The following doesn't work: [ snip ] > Indeed, it can be done by using C and C, but shouldn't sub > names be considered global labels, too? Of course. But newsub and the whole calling convention stuff isn't finished yet. Mea

IMCC bug: Sub names are not labels?

2003-07-15 Thread Luke Palmer
The following doesn't work: .sub _main newsub $P0, Sub, _foo invokecc $P0 end .end .sub _foo # ... .end Indeed, it can be done by using C and C, but shouldn't sub names be considered global labels, too? Luke

Re: [perl #22617] IMCC duplicate labels in different subs cause wrong branch

2003-06-08 Thread Leopold Toetsch
Clinton A. Pierce <[EMAIL PROTECTED]> wrote: > Causes "In main's FOO" to be printed twice. While an understandable > behavior, probably not the correct one. ... and not the documented one. I did not strictly implement the documented behavior of global/local labels un

[perl #22617] IMCC duplicate labels in different subs cause wrong branch

2003-06-08 Thread Clinton A. Pierce
or, probably not the correct one. Language in parsing.pod indicates that perhaps the labels should be munged by IMCC. If this *is* the correct behavior, then a "duplicate label" error of some kind should be emitted by IMCC.

[INFO] imcc and labels

2002-12-09 Thread Leopold Toetsch
The next upcoming change in imcc will fix the until yet not "carved in stone" rules: global labels MUST start with an underscore local labels SHOULD NOT start with an underscore global labels are subject to address fixup, which is done for subroutine calls (bsr) and for the "se

[perl #16960] [PATCH] assemble.pl dulpicate labels

2002-09-03 Thread via RT
# New Ticket Created by Leopold Toetsch # Please include the string: [perl #16960] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=16960 > imcc and assembler did allow duplicate labels. Fix for imcc is ready and foll

Re: [netlabs #757] Problem mixing labels, comments and quote-marks

2002-07-18 Thread Tom Hughes
In message <[EMAIL PROTECTED]> "David M. Lloyd" <[EMAIL PROTECTED]> wrote: > On Sat, 13 Jul 2002, Tom Hughes wrote: > > > Of course... The attached patch should handle that I think... > > This patch is breaking several Solaris 32-bit tests. The following > assembly (from t/pmc/perlar

Re: [netlabs #757] Problem mixing labels, comments and quote-marks

2002-07-18 Thread David M. Lloyd
On Sat, 13 Jul 2002, Tom Hughes wrote: > Of course... The attached patch should handle that I think... This patch is breaking several Solaris 32-bit tests. The following assembly (from t/pmc/perlarray1.pbc): new P0,.PerlArray set P0,0 set I0,P0 print I0

[perl #757] Problem mixing labels, comments and quote-marks

2002-07-17 Thread via RT
Applied, thanks..

Re: [netlabs #757] Problem mixing labels, comments and quote-marks

2002-07-13 Thread Tom Hughes
\']*(?:\\.[^\\\']*)*)\' + )x; $self->{pc}++; return if $line=~/^\s*$/ or $line=~/^\s*#/; # Filter out the comments and blank lines - $line=~s/#[^'"]+$//; # Remove trailing comments + $line=~s/^((?:[^'"]+|$str_re)*)#.*$/$1/; # Remove trailing comments $line=~s/(^\s+|\s+$)//g; # Remove leading and trailing whitespace # # Accumulate lines that only have labels until an instruction is found..

Re: [netlabs #757] Problem mixing labels, comments and quote-marks

2002-07-13 Thread brian wheeler
vision 1.77 > diff -u -r1.77 assemble.pl > --- assemble.pl 4 Jul 2002 18:36:17 - 1.77 > +++ assemble.pl 13 Jul 2002 17:30:48 - > @@ -433,7 +433,7 @@ > >$self->{pc}++; >return if $line=~/^\s*$/ or $line=~/^\s*#/; # Filter out the comments and blank >lines > - $line=~s/#[^'"]+$//; # Remove trailing comments > + $line=~s/#.*$//; # Remove trailing comments >$line=~s/(^\s+|\s+$)//g; # Remove leading and trailing whitespace ># ># Accumulate lines that only have labels until an instruction is found..

Re: [netlabs #757] Problem mixing labels, comments and quote-marks

2002-07-13 Thread Tom Hughes
# Remove trailing comments + $line=~s/#.*$//; # Remove trailing comments $line=~s/(^\s+|\s+$)//g; # Remove leading and trailing whitespace # # Accumulate lines that only have labels until an instruction is found..

[netlabs #757] Problem mixing labels, comments and quote-marks

2002-07-02 Thread via RT
# New Ticket Created by Simon Glover # Please include the string: [netlabs #757] # in the subject line of all future correspondence about this issue. # http://bugs6.perl.org/rt2/Ticket/Display.html?id=757 > This code: A:# prints "a" print "a" end doesn't assem

[COMMIT] Patches for Pn, label formats, and multiple labels.

2002-06-01 Thread Jeff
The following items are now patched and tested: Multiple labels converging on a single instruction. (Tested in t/op/basic.t) Labels and constants now match the format [a-zA-Z_][a-zA-Z0-9_]* (Tested in t/op/macros.t) P3[7], P3[0x1a], P3[-0b10101], P4[S1], P5["Hello World"] all work. Tes

[netlabs #647] [PATCH] allow multiple empty labels in assembler

2002-06-01 Thread via RT
ike this: LBL1: LBL2: print "hello\n" this patch tweaks the part of the assembler which joins empty labels with the following lines so that the assembler now sees. LBL1: noop LBL2: print "hello\n" instead of LBL1:LBL2: print "hello\n" which was confusing the heck

[netlabs #646] [PATCH] allow labels to start with _

2002-06-01 Thread via RT
9_]*); + my $label_re = qr([a-zA-Z_][a-zA-Z0-9_]*); my $pc = 0; $self->_collect_labels(); # Collect labels in a separate pass -- "TIMTOWTDI, but did you have to pick the ugliest way you could find?" -- Michael Carman in comp.lang.perl.misc

[BUG] Single-character labels

2002-01-24 Thread Simon Glover
At the moment, the assembler doesn't seem to like single character labels. For instance, this code: bsr aa print "Didn't branch \n" end aa: print "Branched \n" end prints "Branched", as one would expect, but this co

Local labels in assemble.pl

2001-09-16 Thread Brian Wheeler
I've commited a change which allows local labels to be used in parrot. The labels are local relative to the last non-local label defined (i.e. local labels are forgotten when a non-local is defined). Here's my test program: main: print "test 1\n" bra

[patch] Small mod to assemble.pl to allow uppercase and underscoresin labels

2001-09-15 Thread Gregor N. Purdy
All -- The labels autogenerated by the Jako compiler use uppercase characters and underscores. This patch makes the opcode inference logic in the assembler happy with that situation. It also prints out the qualified opcode it inferred when it fails to find a matching opcode. Regards

Re: Labels

2001-09-05 Thread Michael G Schwern
On Wed, Sep 05, 2001 at 09:02:00PM -0400, Bryan C. Warnock wrote: > Hmm is this such a good thing? Using goto LABEL? No. ;) Would be nice if Perl warned one about multiple labels of the same name in the same call stack, though. > my $a = 0; > GORK: while( 1 ) { >

Labels

2001-09-05 Thread Bryan C . Warnock
Hmm is this such a good thing? my $a = 0; GORK: while( 1 ) { print "Rin "; GORK: if ( 1 ) { print "Tin "; goto GORK if $b ^= 1; print "\n"; next GORK; } } -- Bryan C. Warnock [EMAIL PROTECTED]

labels within expressions?

2000-09-11 Thread David L. Nicol
nce per iteration, > implicitly; so using C explicitly to mean "no further iterations" > is highly counterintuitive, or at least inconsistent. What if we could use C to exit valued iterators? Currently we cannot because labels can not appear within statements, only on their own.