Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-28 Thread Elizabeth Mattijsen
"1\02\03";' | raku -e 'lines.contains(/ "1 2" /).put;' > False > ~$ > > So what I don't understand is how`.contains` coerces `\0` null-separated > strings to a `Str` without whitespace, but coerces `\n` newline-separated > strings to

Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-28 Thread William Michels via perl6-users
es.contains(/ 12 /).put;' False ~$ raku -e 'put "1\02\03";' | raku -e 'lines.contains(/ "1 2" /).put;' False ~$ So what I don't understand is how`.contains` coerces `\0` null-separated strings to a `Str` without whitespace, but coerces `\n` newli

Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-26 Thread William Michels via perl6-users
ts argument > to a Str and calls contains on that Str. And: > > $ raku -e 'put "1\n2\n3"' | raku -e 'put lines.Str' > 1 2 3 > > There's your horizontal whitespace. > >

Re: `lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-26 Thread Sean McAfee
coerces its argument to a Str and calls contains on that Str. And: $ raku -e 'put "1\n2\n3"' | raku -e 'put lines.Str' 1 2 3 There's your horizontal whitespace.

`lines.contains( / \h / )` returning True for input strings not containing horizonal whitespace

2023-01-26 Thread William Michels via perl6-users
Hi, I'm seeing an issue where I try to write parallel code between `slurp` and `lines`, expecting that when I feed each one-liner a string with vertical whitespace (but not horizontal whitespace), the two methods will be differentiated--since lines autochomps by default. ~$ raku -e 'pu

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-29 Thread William Michels via perl6-users
Dear Tobias (and Sean), I opened a Github issue: https://github.com/rakudo/rakudo/issues/3881 On Wed, Aug 26, 2020 at 12:12 PM Tobias Boege wrote: > On Wed, 26 Aug 2020, Tobias Boege wrote: > > Observe: > > > > > 1 ...^ 20 > > (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) > > > > > 1

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-26 Thread Tobias Boege
On Wed, 26 Aug 2020, Tobias Boege wrote: > Observe: > > > 1 ...^ 20 > (1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) > > > 1 ... ^20 # actually C«1 ... (0..19)» > (1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19) > > The documentation [1] states that the C«...» infix is list-asso

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-26 Thread William Michels via perl6-users
> > > > > { $++ * ($ *= -1) } ... * > > > > > > > Hi Sean, that's a neat solution! I seem to have found an oddity though > > (whitespace sensitivity). In the REPL: > > > > > say { $++ * ($ *= -1) } ...21 > > (0 1 -2 3 -4 5 -6

Re: Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-26 Thread Tobias Boege
re I wanted an infinite > > sequence like this: > > > > 0, 1, -2, 3, -4, 5, -6, ... > > > > It took me a while to realize this can be expressed in Raku simply as: > > > > { $++ * ($ *= -1) } ... * > > > > Hi Sean, that's a neat solut

Seq whitespace sensitivity? (was Re: print particular lines question)

2020-08-26 Thread William Michels via perl6-users
5, -6, ... > > It took me a while to realize this can be expressed in Raku simply as: > > { $++ * ($ *= -1) } ... * > Hi Sean, that's a neat solution! I seem to have found an oddity though (whitespace sensitivity). In the REPL: > say { $++ * ($ *= -1) } ...21 (0 1 -2 3

[perl #126532] [BUG] Internal error when passing whitespace through a named argument in Rakudo

2018-05-09 Thread Brian S. Julin via RT
The examples would fail usage constraints with the parameterless MAIN. I could not get them to fail with any internal messages on current rakudo, either with the parameterless MAIN or with a MAIN that had a :$y. Haven't looked as to when this got fixed. Tests added for both cases (though I had t

Re: User defined infix operators and whitespace

2017-08-26 Thread Norman Gaywood
$num) }; > > sub prefix: ( Int $size ) { 1 d $size } > > Gives us 3 d 6 to roll 3 six sided dice or a prefix d 10 for a single 10 > sided dice. > > Except... I'd really like to write 3d6 or d10 but the parser barfs. > > Am I going to just have to live with that? Or di

Re: User defined infix operators and whitespace

2017-08-10 Thread Brock Wilcox
I think there are a couple answers. The simple one is yes -- embrace the whitespace. Maybe wrap them in ()', like (2 d 6). Another line of ideas is wrapping things with some other operators. Maybe a special quoting operator or a converter. [[2d6]] # double for dice! "2d6"

User defined infix operators and whitespace

2017-08-10 Thread Simon Proctor
sided dice or a prefix d 10 for a single 10 sided dice. Except... I'd really like to write 3d6 or d10 but the parser barfs. Am I going to just have to live with that? Or did I miss something obvious? Obviously it's possible to have operators that ignore whitespace (1+1 works just fine) bu

[perl #131382] [LTA] for, parens, and lack of whitespace (for(^700){say 2})

2017-05-27 Thread via RT
nction call; please use whitespace instead of parens at -e:1 --> for⏏(^700) {say 2} Unexpected block in infix position (two terms in a row) at -e:1 --> for(^700)⏏ {say 2} However, it is not printed if you omit space everywhere.

[perl6/specs] 78c421: S05-regex.pod: clairify that trailing whitespace i...

2017-01-02 Thread GitHub
S05-regex.pod Log Message: --- S05-regex.pod: clairify that trailing whitespace is significant w/ :s

[perl #129920] [BUG] Configure.PL does not protect whitespace in --prefix

2016-10-19 Thread brian d foy
--prefix might end up with whitespace (even if the initial value does not have it). This path is not quoted in nqp/Makefile, so that fails and the build cannot continue. I ran into this because I used a path that was a symlink: % perl Configure.pl --gen-moar --prefix /Users/brian/Dropbox/perl6s/r

[perl #129316] [BUG] In given block, whitespace matters too much to parser.

2016-09-20 Thread via RT
# New Ticket Created by Larry Brasfield # Please include the string: [perl #129316] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=129316 > Using Rakudo Star: ~$ perl6 -version This is Rakudo version 2016.07.1 built on MoarVM

[perl #129316] [BUG] In given block, whitespace matters too much to parser.

2016-09-20 Thread Zoffix Znet via RT
Thank you for the report, however, this is not a bug. Closing curlies ('}') end statements when they're the last non-whitespace/non-unspace character on the line, which is why your first version works. When putting them all on one line, you have to explicitly specify where the

[perl #128561] [LTA] inconsistent whitespace rules re diacritics

2016-07-06 Thread via RT
# New Ticket Created by Zefram # Please include the string: [perl #128561] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=128561 > Does a space-with-diacritic grapheme count as whitespace, for the purposes of the Per

[perl6/specs] 94357c: Typos, markup corrections, trailing whitespace

2015-12-29 Thread GitHub
) Changed paths: M S99-glossary.pod Log Message: --- Typos, markup corrections, trailing whitespace

[perl #120895] heredocs get tabs removed when asked to dedent whitespace

2015-11-12 Thread jn...@jnthn.net via RT
On Sat Jan 04 02:26:52 2014, masak wrote: > On Sun Dec 29 08:24:44 2013, FROGGS.de wrote: > > p: say qq:to/EOF/ ~~ /\t/;␤\thello␤EOF␤# the tab is > > preserved > > rakudo-parrot c14a84: OUTPUT«「 」␤␤» > > p: say qq:to/EOF/ ~~ /\t/;␤\thello␤EOF␤# now it is > > gone > > rakudo-parrot c14a

[perl #125543] [BUG] De-indentation should de-indent physical lines, not whitespace following a \n escape in heredocs in Rakudo

2015-11-12 Thread jn...@jnthn.net via RT
-indentation warning at compile time.) > > my $here = qq:to/END_TEXT/; > foo\nbar > END_TEXT > > it's concerning how leading whitespace removal is handled > when one has an embedded newline via \n in a heredoc > oh, interesting > i hadn't considered newlines that

[perl #126532] [BUG] Internal error when passing whitespace through a named argument in Rakudo

2015-11-01 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #126532] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=126532 > Basically, any argument containing only whitespace seems to trigger this er

[perl #126219] LTA error message includes whitespace (dd . ␤ ␤ ␤ ␤ dd)

2015-09-29 Thread via RT
.pl Preceding context expects a term, but found infix . instead at ./test2.pl:5 --> dd .⏏ I don't see any reason for it to include whitespace in the error message.

[perl #125812] LTA error message when doing with() { } with no whitespace before ()

2015-08-14 Thread via RT
=SORRY!=== Word 'if' interpreted as 'if()' function call; please use whitespace instead of parens at ./test.pl:2 --> if⏏(1) { } Unexpected block in infix position (two terms in a row) at ./test.pl:2 --> if(1)⏏ { } In other words, “with” and “without” should

[perl #125543] [BUG] De-indentation should de-indent physical lines, not whitespace following a \n escape in heredocs in Rakudo

2015-07-03 Thread Carl Mäsak
the right thing to do is https://gist.github.com/hoelzro/3b1ff9951908c9ce5aa4 (Gist shows the following heredoc with a \n in it, which gives a de-indentation warning at compile time.) my $here = qq:to/END_TEXT/; foo\nbar END_TEXT it's concerning how leading whitespace removal is

[perl6/specs] 221b27: typos and whitespace fixes

2015-05-11 Thread GitHub
-glossary.pod Log Message: --- typos and whitespace fixes

[perl #124213] [BUG] Bizarre LTA error message when not putting in whitespace between 'is MyBase' and the opening brace '{' in class declaration in Rakudo

2015-03-31 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #124213] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=124213 > m: class T{}; class S is T{} rakudo-moar 2b303a: OUTPUT«===SORRY!===␤Cannot find method

[perl6/specs] 9f20af: Fix typos and whitespace

2014-11-18 Thread GitHub
-concurrency.pod Log Message: --- Fix typos and whitespace

[perl6/specs] ac5860: * whitespace

2014-08-20 Thread GitHub
nged paths: M S99-glossary.pod Log Message: --- * whitespace * spelling * reordering some entries for clarity * grammar * fix POD-os * americanize * capitalization consistency

[perl6/specs] 2be6bf: just a tiny whitespace fix.

2014-03-10 Thread GitHub
-setting-library/Containers.pod Log Message: --- just a tiny whitespace fix.

[perl #78202] [BUG] Rakudo treats ' #' after interpolated variable as whitespace (whereas STD.pm6 doesn't)

2014-01-14 Thread Will Coleda via RT
On Tue Nov 20 11:36:45 2012, FROGGS.de wrote: > looks good nowadays: > > rakudo: sub Good ($time) { say "Good $time #perl6." }; Good now > # discovered by tylercurtis > rakudo bf472b: OUTPUT«Good Instant:1353440186.178945 #perl6.␤» Test added in S02-literals/string-interpolation.t -- Will "Cok

[perl #120895] heredocs get tabs removed when asked to dedent whitespace

2013-12-29 Thread via RT
# New Ticket Created by Tobias Leich # Please include the string: [perl #120895] # in the subject line of all future correspondence about this issue. # https://rt.perl.org/Ticket/Display.html?id=120895 > p: say qq:to/EOF/ ~~ /\t/;␤\thello␤EOF␤# the tab is preserved rakudo-parrot c14a84: OUT

[perl #120526] ss/.../.../ doesn't preserve whitespace

2013-11-12 Thread via RT
dos: { $_ = "a\nb\tc d"; ok ss/a b c d/w x y z/, 'successful substitution returns True'; # XXX This test fails. is $_, "w\nx\ty z", 'ss/.../.../ preserves whitespace'; dies_ok {"abc" ~~ ss/a b c/ x y z/}, 'Cannot ss/// string literal'; } -- Will "Coke" Coleda

[perl6/specs] 7b0188: [new 17] whitespace fixes

2013-11-03 Thread GitHub
-concurrency-jnthn.pod Log Message: --- [new 17] whitespace fixes and close a dangling quote

[perl #119083] [BUG] infix operator with several words matches against one space between the words in Rakudo, but not against any other whitespace (as in Niecza and STD.pm6)

2013-07-30 Thread Carl Mäsak
rakudo 45e8c4: OUTPUT«42␤alive␤» w... wow. r: sub infix:($l, $r) { $l !== $r }; say 5 is␤not 42 rakudo 45e8c4: OUTPUT«===SORRY!===␤Two terms in a row [...] apparently, arbitrary whitespace doesn't work too well. r: sub infix:($l, $r) { $l !== $r }; say 5 is not 42 # looks like i

[perl #119053] [BUG] a rule doesn't match whitespace after a '^' anchor with whitespace after it in Rakudo

2013-07-28 Thread Carl Mäsak
unted as <.ws> moritz: right, but this one isn't leading, it's after the '^'. r: grammar G { rule TOP { ^ }; rule foo { foo } }; say ?G.parse(" foo") rakudo 96776b: OUTPUT«False␤» and putting more stuff in between doesn't help either... if no-one

[perl #114692] [BUG] :i doesn't require whitespace after modifier

2012-11-14 Thread Will Coleda via RT
On Tue Oct 16 09:18:12 2012, jn...@jnthn.net wrote: > On Sat Sep 01 00:30:49 2012, glitc...@myopera.com wrote: > > This code works when it shouldn't. It happens on Rakudo > 2012.08-27-gf3d2b53. > > > > print so 'abc' ~~ /:iabc/ > > > > Fixed: > > $ perl6 -e "say 'ABC' ~~ /:iabc/" >

Re: [perl #114692] [BUG] :i doesn't require whitespace after modifier

2012-09-01 Thread Emile State
unsubscribe On Sat, Sep 1, 2012 at 3:30 AM, GlitchMr wrote: > # New Ticket Created by GlitchMr > # Please include the string: [perl #114692] > # in the subject line of all future correspondence about this issue. > # https://rt.perl.org:443/rt3/Ticket/Display.html?id=114692 > > > > This code wor

[perl #114692] [BUG] :i doesn't require whitespace after modifier

2012-09-01 Thread via RT
# New Ticket Created by GlitchMr # Please include the string: [perl #114692] # in the subject line of all future correspondence about this issue. # https://rt.perl.org:443/rt3/Ticket/Display.html?id=114692 > This code works when it shouldn't. It happens on Rakudo 2012.08-27-gf3d2b53. pri

[perl #113808] Bug report: whitespace in grammars

2012-06-26 Thread via RT
moved the \s* in all places. Same problem) 20:13 < pmichaud> ah, it's the ^ that's an issue. 20:14 < pmichaud> it's somewhat of a rakudobug; the whitespace before the ^ is eating up the newline before testing for "start of string", and with 'rule' the

[perl #75710] [BUG] Whitespace trouble involving a sub whose name begins with 'x' in Rakudo

2011-10-10 Thread Will Coleda via RT
11, near > "our sub xy"␤» > rakudo: ␤our sub xyz($x) { say $x }␤␤+ xyz 3 > rakudo ecacff: OUTPUT«3␤Method 'Num' not found for invocant > of class 'Perl6Sub' [...] > pmichaud: what's that last evaluation? > pmichaud: where does Perl6Sub enter in

[perl #66966] [BUG] Supposedly equivalent code doesn't work the same when formatted with different whitespace

2011-09-19 Thread Will Coleda via RT
On Thu Jun 25 12:53:52 2009, matt-w wrote: > As far as I'm aware, these should be, semantically, the same: > > role R { } > class C { > method a { } > &a := method { } but R; > } > > and > > role R {}; class C { method a { }; &a := method { } but R; } > > However, the first says: > > rtype

[perl6/specs] f99866: fix podchecker whitespace warning

2011-09-15 Thread noreply
-bits.pod Log Message: --- fix podchecker whitespace warning

[perl #89606] Whitespace in operators is not disallowed

2011-05-01 Thread via RT
120␤» JimmyZ rakudo:sub postfix:< >($a) { [*] 1..$a; }; say (* )(5); #is this expected? p6eval rakudo 8533c3: OUTPUT«120␤» moritz no, I think whitespace in operators is disallowed JimmyZ rakudo:sub postfix:< >($a) { [*] 1..$a; }; say (* )(5); # SBC case p6eval rakudo 8533c3: OUTP

[perl #89610] [BUG] Rakudo erroneously allows whitespace postfix operators

2011-04-30 Thread Carl Mäsak
s expected? rakudo 8533c3: OUTPUT«120␤» no, I think whitespace in operators is disallowed rakudo:sub postfix:< >($a) { [*] 1..$a; }; say (* )(5); # SBC case rakudo 8533c3: OUTPUT«120␤» JimmyZ++ # whitespace op bug * masak submits rakudobug rakudo: say (* )(5) rakudo 8533c3: OUTPUT«in

[perl #85506] [BUG] String interpolation doesn't handle '[' after whitespace after variable right in Rakudo

2011-03-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #85506] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=85506 > std: my $a = 42; say "$a []" [13:05] std 4608239: OUTPUT«ok 00:01 122m␤» rakudo: my

[perl #80330] [BUG] Rakudo allows [+]@a without intervening whitespace, STD.pm6 doesn't

2010-12-06 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #80330] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=80330 > rakudo: my @a; [...@a rakudo : ( no output ) rakudo: my @a; [+] @a rakudo : ( no o

[perl #78202] [BUG] Rakudo treats ' #' after interpolated variable as whitespace (whereas STD.pm6 doesn't)

2010-10-04 Thread Carl Mäsak
ood now # discovered by tylercurtis rakudo 7c74c0: OUTPUT«===SORRY!===␤Unable to parse blockoid, couldn't find final '}' at line 22␤» std: sub Good ($time) { say "Good $time #perl6." }; Good now std 237d266: OUTPUT«ok 00:01 119m␤» * masak submits rakudobug I know wha

Re: [perl #75668] [BUG] whitespace before ^ in rule

2010-06-14 Thread Bruce Keeler
I think whitespace before a leading/trailing ^/$ needs to be discounted. Dwimmery and elegance demand. +1

[perl #75710] [BUG] Whitespace trouble involving a sub whose name begins with 'x' in Rakudo

2010-06-14 Thread Carl Mäsak
do: ␤our sub xyz($x) { say $x }␤␤+ xyz 3 rakudo ecacff: OUTPUT«3␤Method 'Num' not found for invocant of class 'Perl6Sub' [...] pmichaud: what's that last evaluation? pmichaud: where does Perl6Sub enter into it? masak: the + is acting like an infix:<+> where it ou

Re: [perl #75668] [BUG] whitespace before ^ in rule

2010-06-12 Thread yary
>... > On Perlmonks, I have found your answers satisfying but was disappointed > that we seem to be a party of two (at least there is an audience).  I feel > that I could wear you out with my questions.  I like Perlmonks, but could > move to another site. A good thing about perlmonks is that your

Re: [perl #75668] [BUG] whitespace before ^ in rule

2010-06-12 Thread rir
On Fri, Jun 11, 2010 at 02:16:28PM -0700, Moritz Lenz via RT wrote: > On Thu Jun 10 21:11:42 2010, rir...@comcast.net wrote: > > I think it is a bug that these differ > > rule TOP { ^ } > > rule TOP {^ } > It actually conforms the current spec. Each consecutive run of

[perl #75668] [BUG] whitespace before ^ in rule

2010-06-11 Thread via RT
# New Ticket Created by rir...@comcast.net # Please include the string: [perl #75668] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=75668 > In commit a5467733bdab87210a4eae6d3af309a0c3041c87 I think it is a bug that these

[perl #73772] [BUG] Rakudo returns the wrong thing from a <> quote with only whitespace in it

2010-06-06 Thread Patrick R. Michaud via RT
Now fixed in 841262f. Assigning to moritz++ for test verification to close ticket. Pm

[perl #73804] whitespace between expression and block

2010-03-25 Thread via RT
# New Ticket Created by Steven Albano # Please include the string: [perl #73804] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73804 > Hello, I was trying out some example code (release #27) when I stumbled upon what appe

[perl #73772] [BUG] Rakudo returns the wrong thing from a <> quote with only whitespace in it

2010-03-24 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #73772] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=73772 > rakudo: say < >.elems rakudo db0f85: OUTPUT«Method 'elems' not found for invocant of c

[perl #70606] [BUG] Null PMC access on a regex with a final infix:<|> followed by whitespace in Rakudo

2009-11-18 Thread Carl Mäsak
# New Ticket Created by "Carl Mäsak" # Please include the string: [perl #70606] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=70606 > rakudo: "b" ~~ /b| / rakudo 7347ec: Null PMC access in find_method('reduce') [...] * m

[perl #66966] [BUG] Supposedly equivalent code doesn't work the same when formatted with different whitespace

2009-06-26 Thread via RT
# New Ticket Created by Matthew Walton # Please include the string: [perl #66966] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=66966 > As far as I'm aware, these should be, semantically, the same: role R { } class C {

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 03:08:05PM -0400, Mark J. Reed wrote: > On Tue, Apr 28, 2009 at 2:27 PM, Patrick R. Michaud > wrote: > > * The Unicode character name database [2] has parens in the > >  name property field for many characters > > > >    000A;;Cc;0;B;N;LINE FEED (LF) > > That's no

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Mark J. Reed
On Tue, Apr 28, 2009 at 2:27 PM, Patrick R. Michaud wrote: >> According to the 5.0.0 standard, section 4.8: >> >> "Unicode character names contain only uppercase Latin letters A >> through Z, digits, space, and hyphen-minus." >> >> So it seems the notes in parentheses are not considered part of th

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 07:22:18AM -0700, Larry Wall wrote: > On Mon, Apr 27, 2009 at 11:04:03AM +0200, Helmut Wollmersdorfer wrote: > > Std.pm allows e.g. > > > > "\x[ 41 , 42 , 43 ]" > > > > For convenience - especially with long charnames - it should be possible > > to write > > > >

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Patrick R. Michaud
On Tue, Apr 28, 2009 at 01:28:40PM -0400, Mark J. Reed wrote: > On Tue, Apr 28, 2009 at 10:22 AM, Larry Wall wrote: > > Does anyone know offhand whether the Unicode Consortium has an explicit > > policy against use of punctuation in a charname?  So far they only > > seem to use hyphen and parens,

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Mark J. Reed
On Tue, Apr 28, 2009 at 10:22 AM, Larry Wall wrote: > Does anyone know offhand whether the Unicode Consortium has an explicit > policy against use of punctuation in a charname?  So far they only > seem to use hyphen and parens, but I wonder to what extent we can > depend on that... > According to

Re: Whitespace in \c[...], \x[...], etc.

2009-04-28 Thread Larry Wall
On Mon, Apr 27, 2009 at 11:04:03AM +0200, Helmut Wollmersdorfer wrote: > It's not explicitly specified, if insignificant whitespace is allowed in > \c[...], \x[...], etc. > > Std.pm allows e.g. > > "\x[ 41 , 42 , 43 ]" > > For convenience - especi

Whitespace in \c[...], \x[...], etc.

2009-04-27 Thread Helmut Wollmersdorfer
It's not explicitly specified, if insignificant whitespace is allowed in \c[...], \x[...], etc. Std.pm allows e.g. "\x[ 41 , 42 , 43 ]" For convenience - especially with long charnames - it should be possible to write "\c[ SPACE, # blaf

[perl #61914] [BUG] Declarator Parser Failure if Whitespace after Opening Paren

2009-01-11 Thread Patrick R. Michaud via RT
On Fri Jan 02 12:06:57 2009, publiustemp-perl6compil...@yahoo.com wrote: > > However, any whitespace after the opening paren causes a parse > failure: > > class Foo { > has ($.this, > $.that, > ); > } > my Foo $foo .= new( this =>

[perl #61914] [BUG] Declarator Parser Failure if Whitespace after Opening Paren

2009-01-02 Thread publiustemp-perl6compil...@yahoo.com (via RT)
his, $.that, ); } my Foo $foo .= new( this => 3, that => 4 ); say $foo.this; However, any whitespace after the opening paren causes a parse failure: class Foo { has ($.this, $.that, ); } my Foo $foo .= new( this => 3, that => 4 ); say $foo.t

[perl #54610] [PATCH] for 'no trailing whitespace' test

2008-05-21 Thread James Keenan via RT
Thanks. Applied as r27734. kid51

[perl #54610] [PATCH] for 'no trailing whitespace' test

2008-05-21 Thread Ifejinelo Onyiah
# New Ticket Created by "Ifejinelo Onyiah" # Please include the string: [perl #54610] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=54610 > The purpose of this patch is to allow parrot pass the "no t

[perl #53464] [TODO] pge - trim whitespace around #= keys

2008-04-28 Thread via RT
# New Ticket Created by Patrick R. Michaud # Please include the string: [perl #53464] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=53464 > Modify PGE to trim extra whitespace around #= keys (which really shouldn&#

[perl #51880] [PATCH] Remove trailing whitespace in languages/tcl/runtime/conversions.pir

2008-03-19 Thread Will Coleda via RT
On Tue Mar 18 22:34:56 2008, kraai wrote: > Howdy, > > t/codingstd/trailing_space.t fails because > languages/tcl/runtime/conversions.pir contains trailing whitespace. > The attached patch removes it. > Thanks, applied in r26492.

[perl #51880] [PATCH] Remove trailing whitespace in languages/tcl/runtime/conversions.pir

2008-03-19 Thread via RT
pir contains trailing whitespace. The attached patch removes it. -- Matt diff --git a/languages/tcl/runtime/conversions.pir b/languages/tcl/runtime/conversions.pir index 7d7b0ea..82c91b8 100644 --- a/languages/tcl/runtime/conversions.pir +++ b/languages/tcl/runtime/conversions.pir @@ -366,7 +36

Re: Indirect objects, adverbial arguments and whitespace

2007-10-08 Thread Dr.Ruud
es, undefined. > So what's the rule: that indirect-object colon needs whitespace after > but not before, and adverbial colon needs whitespace before but not > after? > > The reason I ask is that I'm knocking up an intro to Perl 6 for C and > C++ programmers. I expect

Re: Indirect objects, adverbial arguments and whitespace

2007-10-07 Thread Luke Palmer
ed together case, but mangle $foo : a is not ambiguous because : a is not a pair: there is no whitespace allowed between the colon and the name on that style of pair. Luke

Re: Indirect objects, adverbial arguments and whitespace

2007-10-07 Thread Mark J. Reed
Visually, I interpret ":a" as a token unto itself, though that's probably Ruby's fault. That interpretation would man that the dual-whitespace version would have to be an indirect object. I would argue for disallowing the all-jammed-together case, lest we run into longest-m

Indirect objects, adverbial arguments and whitespace

2007-10-07 Thread Markus Laker
If I've got this right: mangle $foo :a;# mangle($foo, a => 1); mangle $foo: a;# $foo.mangle(a()); So these -- mangle $foo:a; mangle $foo : a; are ambiguous and, as far as I can tell from the synopses, undefined. So what's the rule: that indirect-object colon needs whitesp

[perl #42236] [PATCH] Codingstd/whitespace fixes (keyword one-space open-paren)

2007-03-31 Thread Paul Cochrane via RT
On Fri Mar 30 23:36:45 2007, [EMAIL PROTECTED] wrote: > Hi, > > I'm bored, so I'm going through and fixing some failing tests in > t/codingstd/ > > At the moment I'm working on c_parens.t. Here's one that fixes the > majority of the failures in the first third of the tests, which looks > that cod

[perl #42236] [PATCH] Codingstd/whitespace fixes (keyword one-space open-paren)

2007-03-31 Thread via RT
# New Ticket Created by Shawn M Moore # Please include the string: [perl #42236] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt3/Ticket/Display.html?id=42236 > Hi, I'm bored, so I'm going through and fixing some failing tests in t/codingstd/ At

[perl #40755] [TODO] Tcl - make 'splitchars' variable the default whitespace splitchars in runtime/builtin/split.pir

2006-11-09 Thread via RT
ble with the default whitespace splitchars. This ticket is in response to cage task #39704.

Re: a smarter form of whitespace

2006-07-06 Thread Patrick R. Michaud
On Thu, Jul 06, 2006 at 12:29:12AM -0700, Allison Randal wrote: > >$ cat xyz.pir > >.sub main :main > >load_bytecode 'PGE.pbc' > >load_bytecode 'ar.pir' > >load_bytecode 'dumper.pbc' > >load_bytecode 'PGE/Dumper.pbc' > > > >$P0 = find_global 'XYZ', 'start' > >$P1 = $P0("\n\n

Re: a smarter form of whitespace

2006-07-06 Thread Nathan Gray
On Tue, Jul 04, 2006 at 12:57:16PM -0700, Allison Randal wrote: > I'm writing a parser for a language that treats a double newline as a > statement terminator. It works if I make every rule a 'regex' (to turn > off smart whitespace). But I want spaces and tabs to act as

Re: a smarter form of whitespace

2006-07-06 Thread Allison Randal
Patrick R. Michaud wrote: On Tue, Jul 04, 2006 at 12:57:16PM -0700, Allison Randal wrote: -- token start { ^*$ } regex emptyline { ^^ $$ \n } token ws { [ | \t]* } -- The above grammar doesn't have a "grammar" statement; as a result the regexes are being installed into the '' names

Re: a smarter form of whitespace

2006-07-05 Thread Patrick R. Michaud
On Tue, Jul 04, 2006 at 12:57:16PM -0700, Allison Randal wrote: > -- > > token start { ^*$ } > > regex emptyline { ^^ $$ \n } > > token ws { [ | \t]* } > > -- The above grammar doesn't have a "grammar" statement; as a result the regexes are being installed into the '' namespace. > If

Re: a smarter form of whitespace

2006-07-05 Thread Allison Randal
Nathan Gray wrote: > > Overloading and other builtins was fixed in parrot and pugs > approaching midnight (hackathon time) on 2006-06-29. If your parrot > and pugs are both more recent than that, I'm not sure where the bug > is. I have the latest checkout of Parrot (I'm not using Pugs). It may

a smarter form of whitespace

2006-07-04 Thread Allison Randal
I'm writing a parser for a language that treats a double newline as a statement terminator. It works if I make every rule a 'regex' (to turn off smart whitespace). But I want spaces and tabs to act as smart whitespace, and newlines to act as literal whitespace. I've overl

Re: [perl #37104] [PATCH] docs - spelling, markup and whitespace fixes

2005-09-08 Thread Bernhard Schmalhofer
Jonathan Worthington schrieb: "Joshua Hoblitt (via RT)" <[EMAIL PROTECTED]> wrote: HmmmI'm thinking these lines shouldn't be there:- +<<< .mine +>>> .r9142 Yes, sure. I must have missed an conflict when svn had to do some merging. The svn litter is removed in r9158. CU, Bernh

Re: [perl #37104] [PATCH] docs - spelling, markup and whitespace fixes

2005-09-08 Thread Jonathan Worthington
"Joshua Hoblitt (via RT)" <[EMAIL PROTECTED]> wrote: @@ -95,10 +97,17 @@ =head2 PMCs > +<<< .mine +PMC stands for Parrot Magic Cookie. PMCs represent any complex data structure +or type, including aggregate data types (arrays, hash tables, etc). A PMC can +implement its own behavior f

Re: [PATCH] docs - spelling, markup and whitespace fixes

2005-09-07 Thread Bernhard Schmalhofer
Joshua Hoblitt schrieb: I've tried submitting this patch to RT twice now without any success so I'm resorting to sending it directly to the mailing list. -J Hi, thanks a lot for your patch. I also think that the problem with RT were because of the size of the attachment. TNX, Bernhard

Re[2]: Whitespace

2005-08-06 Thread Andrew Shitov
>> : so why not 'print($x)' == 'print ($x)' ;-) > Plus we got rid of Perl-5's no-op unary +, so instead we're using > whitespace to force it to be a list operator. Thanks! I've got the idea. I'd better refuse parenthesis than a space here. I

Re: Whitespace

2005-08-05 Thread Larry Wall
ired of answering the FAQ. On top of which, we think it's probably easier to retrain you than the typical newbie. :-) Plus we got rid of Perl-5's no-op unary +, so instead we're using whitespace to force it to be a list operator. But the overriding reason is that we're tryi

Re: Whitespace

2005-08-04 Thread Andrew Shitov
print (1+2)*3; can print 9, instead of 3. I'd prefer always have '3' (as a result of sum 1 + 2) here. A C-programmer would tread this like (print (1 + 2) * 3); # prints int, then returns void print (or do)? And is print .(1+2)*3 allowed? in fact, that is exactly (print.g

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread H.Merijn Brand
On Thu, 4 Aug 2005 20:21:18 +0800, Autrijus Tang <[EMAIL PROTECTED]> wrote: > On Thu, Aug 04, 2005 at 10:55:12AM +0400, Andrew Shitov wrote: > > why do we have to give up a space when calling functions under Pugs? > > > > A need to type open('file.txt') instead of open ('file.txt') makes > > me p

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Carl Franks
I've just realised I quoted the wrong doc earlier, I meant to link to: http://dev.perl.org/perl6/doc/design/syn/S12.html#Methods .doit ()# ILLEGAL (two terms in a row) .doit .() # okay, no arguments, same as .doit() I had wrongly thought this also applied to subroutine calls, and th

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Brano Tichý
Thus spake Autrijus: This is so: print (1+2)*3; can print 9, instead of 3. Just a newbie question: what would print (1+2)x3; print (or do)? And is print .(1+2)*3 allowed? brano tichý

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Autrijus Tang
On Thu, Aug 04, 2005 at 10:55:12AM +0400, Andrew Shitov wrote: > why do we have to give up a space when calling functions under Pugs? > > A need to type open('file.txt') instead of open ('file.txt') makes > me perplexing (not perl-flexing ;-) Our recent discussions in 'zip with()' > gave no answer

Re: Re[2]: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Carl Franks
> > why do we have to give up a space when calling functions under Pugs? > > >> Not sure whether it's enough of an answer, but see: > >> http://dev.perl.org/perl6/doc/design/syn/S04.html#Statement_parsing > > it says: > > if $term ($x) # syntax error (two terms in a row) > > if this ca

Re[2]: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Andrew Shitov
> why do we have to give up a space when calling functions under Pugs? >> Not sure whether it's enough of an answer, but see: >> http://dev.perl.org/perl6/doc/design/syn/S04.html#Statement_parsing it says: if $term ($x) # syntax error (two terms in a row) if this cause an error, why not

Re: Whitespace (Was: [RELEASE] Pugs 6.2.9 released!)

2005-08-04 Thread Carl Franks
> why do we have to give up a space when calling functions under Pugs? > > A need to type open('file.txt') instead of open ('file.txt') makes > me perplexing (not perl-flexing ;-) Our recent discussions in 'zip with()' > gave no answer. Not sure whether it's enough of an answer, but see: http://d

  1   2   3   >