Re: Junctions again (was Re: binding arguments)

2006-01-06 Thread Markus Laire
f $x <= 5 && $x <= 5 {say 'smaller'} > > can be permuted into > > if $x <= 5 && 5 > $x {say 'smaller'} > > and optimized to > > if $x == 5 {say 'smaller'} Do you claim that if $x <= 5 && $x <= 5 {say 'smaller'} is same as if $x == 5 {say 'smaller'} -- Markus Laire

Re: Heureka - from the -Ofun department

2006-02-09 Thread Markus Laire
e it. ps. The syntax might be wrong, as I don't program in parrot. I'm just following the conversation. -- Markus Laire

Two comments about S05

2006-04-22 Thread Markus Laire
code assertion) instead of <( ... )> (result capture)? -- Markus Laire

S05: Interpolated hashes?

2006-04-24 Thread Markus Laire
7;s just counted as "matched", whatever that means, and why the description is so dis-similar to the first quote. -- Markus Laire

Re: S05: Interpolated hashes?

2006-04-24 Thread Markus Laire
to reset to before the key for some reason, you can always > set .pos to $.beg, or whatever the name of the method is. Hmm, > that looks like it's unspecced. This seems interesting. From day-to-day it becames harder to fully understand this perl6 thing, but I like it :) -- Markus Laire

Re: S5 - Question about repetition qualifier

2006-04-26 Thread Markus Laire
lies are taken to be a closure returning an Int or a Range object. " So you can just put any closure which returns Int or Range directly within the curlies. -- Markus Laire

Re: A shorter long dot

2006-05-04 Thread Markus Laire
ill possible to align accessors by explicitly using the long dot syntax: %monsters.{'cookie'} = Monster.new; %people\ .{'john'} = Person.new; %cats\ .{'fluffy'} = Cat.new; -- Markus Laire

Linking Synopses to corresponding pod-files?

2006-05-04 Thread Markus Laire
, so that submitting patches would be easier? -- Markus Laire

Re: Linking Synopses to corresponding pod-files?

2006-05-04 Thread Markus Laire
On 5/4/06, Juerd <[EMAIL PROTECTED]> wrote: Markus Laire skribis 2006-05-04 14:55 (+0300): > When reading Synopses, I sometimes notice some mistakes or typos, > which I'd like to submit a patch for, but it's not easy to do so as I > don't know where to get the sour

Re: A shorter long dot

2006-05-04 Thread Markus Laire
On 5/4/06, Paul Johnson <[EMAIL PROTECTED]> wrote: On Thu, May 04, 2006 at 01:56:44PM +0300, Markus Laire wrote: Thanks for taking the time to explain this. The long dot here does seem to be solving more important problems. Now I'm not as up to date with Perl 6 syntax as I once

S09: Single typo & postfix ...

2006-05-05 Thread Markus Laire
There is a typo in S09 (patch included) Also, S09 uses postfix ... to mean ..Inf but S03 uses ..* for this, so one of these should likely be changed unless both are OK. -- Markus Laire patch-S09 Description: Binary data

Re: Scans

2006-05-09 Thread Markus Laire
i.e. [+] with no arguments) -- Markus Laire

Re: Scans

2006-05-09 Thread Markus Laire
1-argument case. i.e. should list([+] 1) return (0, 1) or (1) -- Markus Laire

Re: Scans

2006-05-10 Thread Markus Laire
<= 0 <= -1 <= -2, 1 <= 0 <= -1 <= -2 <= -1, 1 <= 0 <= -1 <= -2 <= -1 <= -3 ==> Bool::True, Bool::True, Bool::True, Bool::True, Bool::False, Bool::False And so filter (list [<=] @array) @array would give first 4 elements of @array, i.e. (1, 0, -1, -2) -- Markus Laire

Re: Scans

2006-05-10 Thread Markus Laire
In the previous mail I accidentally read [<=] as [>=] On 5/10/06, Markus Laire <[EMAIL PROTECTED]> wrote: > > filter (list [<=] @array) @array ==> > > first monotonically non-decreasing run in @array > > So @array = (1 0 -1 -2 -1 -3) ==>

Re: Scans

2006-05-10 Thread Markus Laire
And here I mis-read < as <=. Perhaps I should stop "fixing", as I'm making too many errors here... On 5/10/06, Markus Laire <[EMAIL PROTECTED]> wrote: > > filter (list [<] @array) @array ==> > > first monotonically increasing run in @

Re: Scans

2006-05-10 Thread Markus Laire
On 5/9/06, Jonathan Scott Duff <[EMAIL PROTECTED]> wrote: On Tue, May 09, 2006 at 06:07:26PM +0300, Markus Laire wrote: > ps. Should first element of scan be 0-argument or 1-argument case. > i.e. should list([+] 1) return (0, 1) or (1) I noticed this in earlier posts and thought

Re: [svn:perl6-synopsis] r9216 - doc/trunk/design/syn

2006-05-13 Thread Markus Laire
t. The argumentless C<*> and C<**> forms are probably only -useful in "dimensional" list contexts. Is there any new format to do the equivalent of C<@foo[1;**;5]>, or is that impossible nowadays? -- Markus Laire

perl6-users or perl6-meta?

2006-05-18 Thread Markus Laire
llow. [1] http://www.nntp.perl.org/group/perl.perl6.meta/989 [2] http://www.nntp.perl.org/group/perl.perl6.announce/511 -- Markus Laire

Re: Mutil Method Questions

2006-06-23 Thread Markus Laire
Range-example is my quess of how Range could be used with "for". I'm not 100% sure if that syntax is OK. How do I extend the example to really check the parameter types. Some kind of "use strict" anywhere? I think that parameter types are automatically checked. Also "use strict;" is default in perl6, but that's a bit different thing IMHO. -- Markus Laire

Re: Mutil Method Questions

2006-06-23 Thread Markus Laire
in my example the (String, Int) version would be called because it's "the best candidate". And that would also mean that first Int is automatically converted to String. -- Markus Laire

Can foo("123") dispatch to foo(Int) (was: Mutil Method Questions)

2006-06-23 Thread Markus Laire
ther can Int ever be "best candidate" for Num, because they are different types? The programmer put type information in the sig for a reason. I think that reason is that they wanted to be careful about what was allowed to be passed to the subroutine. Autoconversion seems to defeat that. -Scott -- Jonathan Scott Duff [EMAIL PROTECTED] -- Markus Laire

Re: [svn:perl6-synopsis] r9727 - doc/trunk/design/syn

2006-07-01 Thread Markus Laire
irst passes stuff, second passes [stuff]) -- Markus Laire

Re: [svn:perl6-synopsis] r9733 - doc/trunk/design/syn

2006-07-03 Thread Markus Laire
s fine, and means + +q:n /stuff/ + +while Since quotes can have whitespace before the first/opening delimiter, but functions can't (according to S03), how is C parsed? (Notice the space before parens). Would that be parsed as invalid function-call (i.e. syntax error) or valid quote? -- Markus Laire

S04 - forbidden coding-style

2006-07-20 Thread Markus Laire
;s necessary to make this programming-style invalid for perl6? This style is used at least by "GNU Coding Standards" (section 5.1) at http://www.gnu.org/prep/standards/standards.html I also like this style, as it lines up both the keywords and the curlies. -- Markus Laire

Re: S04 - forbidden coding-style

2006-07-21 Thread Markus Laire
On 7/20/06, Smylers <[EMAIL PROTECTED]> wrote: Markus Laire writes: > S04 seems to say that a style like this can't be used by > perl6-programmers: > > loop > { >... > } > while $x; > > I like this style, as it lines up both the keywords and the c

Re: S04 - forbidden coding-style

2006-07-25 Thread Markus Laire
rom S10 AUTODEF, CANDO Submethods from S12 BUILD, BUILDALL, CREATE, DESTROY, DESTROYALL Pseudo-class from S12 WALK I might've missed some. So making statement modifiers uppercase would just be an another place where perl6 uses uppercase reserved words. -- Markus Laire

Re: [svn:perl6-synopsis] r10477 - doc/trunk/design/syn

2006-07-26 Thread Markus Laire
+Piping to the C<*> "whatever" term is considered a feed to the lexically "Piping" should probably be changed to something else. -- Markus Laire

Re: [svn:perl6-synopsis] r10804 - doc/trunk/design/syn

2006-08-11 Thread Markus Laire
broutine extends from that statement to the end of the file, as C and -C declarations do). - Redefining a stub subroutine does not produce an error, but redefining an already-defined subroutine does. If you wish to redefine a defined sub, you must explicitly use the "C" trait. ==== -- Markus Laire

Re: === and array-refs

2006-08-16 Thread Markus Laire
assignment. It is performed with the := operator. Instead of replacing the value in a container like normal assignment, it replaces the container itself. For instance: my $x = 'Just Another'; my $y := $x; $y = 'Perl Hacker'; After this, both $x and $y contain the string "Perl Hacker", since they are really just two different names for the same variable. -- Markus Laire

Re: === and array-refs

2006-08-16 Thread Markus Laire
On 8/16/06, Dr.Ruud <[EMAIL PROTECTED]> wrote: "Markus Laire" schreef: > my $x = 'Just Another'; > my $y := $x; > $y = 'Perl Hacker'; > > After this, both $x and $y contain the string "Perl Hacker", since > they are r

Re: === and array-refs

2006-08-16 Thread Markus Laire
they were mutable types: $bar = [1,2]; $foo = $bar; ... $bar = 123; # This doesn't affect $foo Of course, type-allowed mutation of $bar will affect $foo if $bar is mutable type. Still, thanks for clarification - I misunderstood what you meant with "someone else holding another symbol". -- Markus Laire

Re: === and array-refs

2006-08-17 Thread Markus Laire
many other languages uses for they comparison than more cryptic eqv. Also, == does "simpler" comparison than eq, so I feel that === should also do "simpler" (to understand) comparison than eqv -- Markus Laire

Re: [svn:perl6-synopsis] r11115 - doc/trunk/design/syn

2006-08-18 Thread Markus Laire
short switches like C<-abc> to mean C<-a -b -c>? Will perl6 support this notation or not? -- Markus Laire

Re: [svn:perl6-synopsis] r11115 - doc/trunk/design/syn

2006-08-18 Thread Markus Laire
On 8/18/06, Larry Wall <[EMAIL PROTECTED]> wrote: On Fri, Aug 18, 2006 at 12:56:30PM +0300, Markus Laire wrote: : What about combined short switches like C<-abc> to mean C<-a -b -c>? : Will perl6 support this notation or not? Hmm, that opens up a world of hurt. Either you hav

Re: [svn:perl6-synopsis] r11504 - doc/trunk/design/syn

2006-08-28 Thread Markus Laire
ntext. Therefore + +@a = 1, < 2 3 >, 4; + +is equivalent to + +@a = 1, 2, 3, 4; Shouldn't this be @a = 1, '2', '3', 4; -- Markus Laire

Re: multi subs with identical signatures: should be a warning ?

2006-08-30 Thread Markus Laire
less there's a tie, in which case the tied candidates are redispatched using any additional tiebreaker long names (see below). If a tie still results, only candidates marked with the default trait are considered, and the best matching default routine is used. If there are no default routines, or if the available defaults are also tied, a final tie-breaking proto sub is called, if there is one (see above). Otherwise an exception is thrown. -- Markus Laire

Compiling pugs r12925 failed

2006-09-02 Thread Markus Laire
is "No such file or directory" in english. I checked src/perl6/Prelude.pm but didn't see anything interesting on line 682. Maybe the linenumber was wrong? My system is Knoppix 4.0.2 CD + ghc 6.4.1 from Debian-backports. $ uname -a Linux Knoppix 2.6.12 #2 SMP Tue Aug 9 23:20:52 CEST 2005 i686 GNU/Linux -- Markus Laire

Re: Compiling pugs r12925 failed

2006-09-02 Thread Markus Laire
On 9/2/06, Audrey Tang <[EMAIL PROTECTED]> wrote: 2006/9/2, Markus Laire <[EMAIL PROTECTED]>: > I tried to compile pugs r12925 with parrot r14364 (both current as of > yesterday) and "make" for pugs failed with this message: Heya. r12925 is at the middle of gaal

Re: Compiling pugs r12925 failed

2006-09-02 Thread Markus Laire
On 9/2/06, Audrey Tang <[EMAIL PROTECTED]> wrote: 2006/9/2, Markus Laire <[EMAIL PROTECTED]>: > On 9/2/06, Audrey Tang <[EMAIL PROTECTED]> wrote: > > 2006/9/2, Markus Laire <[EMAIL PROTECTED]>: > > > I tried to compile pugs r12925 with parrot r14364 (bot

Re: Compiling pugs r12925 failed

2006-09-04 Thread Markus Laire
On 9/2/06, Markus Laire <[EMAIL PROTECTED]> wrote: On 9/2/06, Audrey Tang <[EMAIL PROTECTED]> wrote: > This is quite strange, as I cannot duplicate this failure mode; neither can > others in #perl6. Nevertheless, I've attempted a fix. Can you try > again with r1294

Just dreaming ... (was: Re: Mozilla's offer of help to Perl 6 -- How about adding P6XPCOM to PyXPCOM in Gecko 1.9+ and Firefox 3?)

2006-09-09 Thread Markus Laire
On 9/9/06, Conrad Schneiker <[EMAIL PROTECTED]> wrote: In: Perl 6 Design Minutes for 23 August 2006 http://use.perl.org/articles/06/09/08/2238219.shtml I saw this intriguing news: "Mozilla Foundation wants to know how they can help Perl 6" Support for

any(@originals) ~~ { .foo eq $bar} (was Re: renaming "grep" to "where")

2006-09-19 Thread Markus Laire
pugs> any(@a) ~~ { $_ % 2 } (Bool::False | Bool::True) -- Markus Laire

Re: call, call(), .call, and captures

2006-09-21 Thread Markus Laire
in-editor parsers fall over screaming ;) That would be quite close to [\+] [\,] etc.. from S03: S03> say [\+] 1..* # (1, 3, 6, 10, 15, ...) -- Markus Laire

Re: Trying to make a new operator

2006-09-22 Thread Markus Laire
infix:<☥> ($l,$r) { return "The $l wise men spent $r days"; }; sub infix:<☆> ($l,$r) { return "$l following a star in the $r-th heaven"; }; sub infix:<☺> ($l,$r) { return "$l to become very happy for $r days and nights" }; -- Markus Laire

Re: [svn:perl6-synopsis] r12346 - doc/trunk/design/syn

2006-09-23 Thread Markus Laire
t;[EMAIL PROTECTED],1,2,3> just as C<[+] 0,1,2,3> is equivalent to C<0+1+2+3>? So why is there C<:> instead of C<,> after C<@foo>? Does this have something to do with the fact that C<@args> is C<[EMAIL PROTECTED],1,2,3> and not C<@foo,1,2,3>? -- Markus Laire

Re: [svn:perl6-synopsis] r12346 - doc/trunk/design/syn

2006-09-23 Thread Markus Laire
On 9/23/06, Audrey Tang <[EMAIL PROTECTED]> wrote: 在 Sep 23, 2006 8:36 PM 時,Markus Laire 寫到: > On 9/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > >> @args = [EMAIL PROTECTED],1,2,3; >> -push [,] @args;# same as push @foo,1,2,3 >> +pu

Is [,] different from other "Reduction operators"?

2006-09-23 Thread Markus Laire
y different. As an example, C<[+](1,2,3)> is same as C<1+2+3> so IMHO C<[,](1,2,3)> should be same as C<1,2,3> but S06 says that it becomes C<\(1,2,3)>. -- Markus Laire

Re: Nested statement modifiers.

2006-10-04 Thread Markus Laire
is ambiguous though. It really is, and the very first question that everyone asks is: how do I get access to the outer loop variable, which of course, you cannot for the reasons stated above. What about $OUTER::_ ? Shouldn't that access the outer $_ ? Let's get P6 out the door, an

Re: Nested statement modifiers.

2006-10-04 Thread Markus Laire
tement): >"Unlike in Perl 5, applying a statement modifier to a do block is >specifically disallowed Oh. For some reason, I thought this exception was for loops only. According to S04 C is a loop, "The do-once loop". -- Markus Laire

if-else and statement-ending blocks?

2006-10-05 Thread Markus Laire
foo == 123 { ... } else { ... } is same as if $foo == 123 { ... }; # <-- notice the semicolon here else { ... } because if-statement could end there. -- Markus Laire

Re: S5: substitutions

2006-10-10 Thread Markus Laire
tem * S02> S02> A bare closure also interpolates in double-quotish context. It may S02> not be followed by any dereferencers, since you can always put them S02> inside the closure. The expression inside is evaluated in scalar S02> (string) context. You can force list context on the expression using S02> the C operator if necessary. -- Markus Laire

Programming languages and copyright?

2006-10-23 Thread Markus Laire
everyone is picking-and-choosing what they want from other programming languages. So I'd like to ask whether this is legal or not and why? -- Markus Laire

Re: Programming languages and copyright?

2006-10-23 Thread Markus Laire
On 10/23/06, Smylers <[EMAIL PROTECTED]> wrote: Markus Laire writes: > Does anyone know if programming languages are protected by copyright > or not? Code can be copyrighted; ideas can't be. Yes, but the syntax of the programming language is more than just an idea. Copyri

Parrot Glossary - COW

2002-07-05 Thread Markus Laire
I've been following this list for a month, but havn't yet learned what COW really means. It's used so often that perhaps it should be added to Parrot Glossary. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Use of regular expressions on non-strings

2002-08-03 Thread Markus Laire
ck into. * This is useful for throwing away successfully processed input when matching from an input stream or an iterator of arbitrary length. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: OT: Finite State Machine (was Perl summary for week ending 2002-08-04)

2002-08-11 Thread Markus Laire
r A or a match for B. * Closure - zero or more matches for a pattern So regular expressions in Perl are really far from being regular. for technical definition, you can check e.g. http://www.wkonline.com/d/Finite_State_Machine.html but that is most likely not understandable without prior knowlegde. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

[perl #16745] imcc doesn't compile anymore

2002-08-25 Thread Markus Laire
# New Ticket Created by "Markus Laire" # Please include the string: [perl #16745] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=16745 > Compiling imcc dies on Cygwin with error "No rule to make target

Re: Cleanup time!

2002-08-25 Thread Markus Laire
ease target. perl6 was badly broken before, so fixes are required before release. Unfortunately, now that perl6 has got some fixes, imcc is broken so I can't test perl6 yet. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-25 Thread Markus Laire
uded which is after the include of dlfcn.h. > > Here's a patch that addresses both those issues and makes imcc > work again. I applied this patch locally, but making imcc still ends with error "cannot find -ldl" (I quess that means Parrot_dlopen library as Cygwin has no such file) -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-25 Thread Markus Laire
debug.ops, io.ops and rx.ops, but perl6 works better with only 35% test failed and no readline-errors. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-25 Thread Markus Laire
On 25 Aug 2002 at 19:28, Sean O'Rourke wrote: > On Mon, 26 Aug 2002, Markus Laire wrote: > > I tested than on Cygwin and imcc does compile, but I have some > > problems: > > > > If I compile imcc with 'make imcc', most perl6 tests will fail with >

Re: E5: questions

2002-08-25 Thread Markus Laire
(OK) o backtrack fails whole match So even shorter version: :/::/:::/ makes backtrack fail current atom/group/rule/match. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-26 Thread Markus Laire
operator 'bsr' on line 3. # Failed test (t/rx/basic.t at line 57) (line 88 for basic.4) # got: '' # expected: 'ok 1 -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-26 Thread Markus Laire
> $ perl6 --force -v --tree -- < /dev/null That doesn't change anything, same tests fail with same error. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-27 Thread Markus Laire
nclude/parrot/parrot.h:165: parrot/vtable.h: No such file or directory make[1]: *** [imcparser.o] Error 1 make[1]: Leaving directory `/home/z/cvs/cvs-parrot/languages/imcc' make: *** [imcc] Error 2 -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-27 Thread Markus Laire
On 27 Aug 2002 at 11:59, Markus Laire wrote: > ok, I tested that on cygwin with CVS checkout (GMT 20020827-1125) That should've been GMT 20020827-0825 -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-27 Thread Markus Laire
On 27 Aug 2002 at 11:59, Markus Laire wrote: > On 27 Aug 2002 at 1:49, Mike Lambert wrote: > > > So currently, if one does a CVS checkout on win32, and is using cygwin > > or msvc, they can do: > > ... While perl6 does work now, 'make test' for parrot doesn&#x

[perl #16789] 'make test' for parrot fails

2002-08-27 Thread Markus Laire
# New Ticket Created by "Markus Laire" # Please include the string: [perl #16789] # in the subject line of all future correspondence about this issue. # http://rt.perl.org/rt2/Ticket/Display.html?id=16789 > After recent fixes to get perl6 work on win32 & cygwin, '

Re: [perl #16755] imcc requires Parrot_dlopen but HAS_DLOPEN is never defined

2002-08-27 Thread Markus Laire
On 27 Aug 2002 at 11:59, Markus Laire wrote: > With following commands ALL perl6 tests pass. NO skipped or failed > tests, not even those 8_5 and 8_6. > (All tests succesful - Files=15, Tests=64) > > Configure.pl && make && cd languages/imcc && > mak

Re: Hypothetical synonyms

2002-08-28 Thread Markus Laire
torial-problem from last Perl Golf working in perl6, and it has proven to be quite a challenge... (only 32bit numbers, modulo not fully working, no capturing regexps, ) And I'm definitely going to try any future PerlGolf challenges also in perl6. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Hypothetical synonyms

2002-08-29 Thread Markus Laire
This really belongs to perl6-internals and not perl6-language. On 28 Aug 2002 at 17:19, Sean O'Rourke wrote: > On Thu, 29 Aug 2002, Markus Laire wrote: > > (only 32bit numbers, modulo not fully working, no capturing regexps, > > ) > > Where does modulo break? M

Re: [PRE-RELEASE] Parrot 0.0.8

2002-08-29 Thread Markus Laire
ard time remembering all the different TLAs for timezones. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16874] [BUG] Concatenation failing

2002-08-30 Thread Markus Laire
So this bug isn't (only) in concat-opcode. set S0, "foo " set S1, "bar " set S2, "quux" set S15, "" concat S15, S0 print S15 # add this line and concatenation works concat S15, S1 concat S15, S2 print "wierd: [" print S15 print "]\n" end -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16874] [BUG] Concatenation failing

2002-08-30 Thread Markus Laire
K" set S2, "123456789012" concat S0, S1 concat S0, S2 print "This text overwrites part of S0 :\n" print S0 end which prints: This text overwrites part of S0 : ABCDEFGHIJK1This text o You can change lengths of S1 and S2 a bit, and this still works. Overwritten part always

Re: Regex stuff...

2002-08-31 Thread Markus Laire
s I understand it, binding to $1 etc.. is a special case. Also I don't see any problems in your example: m: w / $2:=(\S+) = $1:=(\S+) / First () is captured and assigned to $2 (instead of $1). Then second () is captured and assigned to $1. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Regex stuff...

2002-08-31 Thread Markus Laire
r captures to $1..$4 but only to $1,$2 according to the renumbering. Note that it's actually called 'reordering/renumbering' instead of 'binding' in A5 for numeric variables. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Parrot: maximizing the audience

2002-09-03 Thread Markus Laire
ut this point has > already been discussed last week). > ... Would it be possible to rename "perl6-internals" now to something better like "parrot-internals"? There probably are some big problems in renaming an active list, but this could give us more non-perl developer

RE: atomicness and \n

2002-09-04 Thread Markus Laire
;+>? Why not make it C<|>? > > $foo = rx/ <||[cde]>|f / Because it's good to have MTOWTDI. (= More than one way to do it) -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [perl #16937] Cygwin testers needed

2002-09-07 Thread Markus Laire
ngs/utf8.o encodings/utf16.o encodings/utf32.o chartypes/unicode.o chartypes/usascii.o -lcrypt /usr/lib/libcygwin.a(libcmain.o)(.text+0x81): undefined reference to `WinMain@16' collect2: ld returned 1 exit status make[2]: *** [blib/lib/libparrot.so] Error 1 make[2]: Leaving directory `/hom

Re: Goal call for 0.0.9

2002-09-09 Thread Markus Laire
give them a workout. IMHO it's fine to build few extra parts by default to test them while we are still developing. Those parts can always be removed for release versions. At least perl6 (and imcc which it needs) could be added to default build, and perhaps also scheme if it's going to b

Re: Regex query

2002-09-21 Thread Markus Laire
ny single values in parentheses. Latest Perl-Golf tournament 'Infix to RPN' used testcases like (18*16*16*5-1+12+15+18*1-8+6/7-6-2-(19)*(17))+8+((9/14)) This is valid mathematical expression in perl5 but would do something totally different in perl6 because of those 'one-element lists' -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Backtracking syntax

2002-09-22 Thread Markus Laire
o be a lot easier to remember than :,:],:> - and also easier to type. While and don't follow same syntax, I don't really see any better solutions. Better solution should IMHO keep :,::,::: and offer better alternative only to . doesn't really belong to this serie as it's

Re: Backtracking syntax

2002-09-22 Thread Markus Laire
On 22 Sep 2002 at 21:06, Simon Cozens wrote: > [EMAIL PROTECTED] (Markus Laire) writes: > > While and don't follow same syntax, I don't really see > > any better solutions. > > is sufficiently "hard" that it musn't be confused with the &g

Re: Regex query

2002-09-22 Thread Markus Laire
And the one best reason I forgot to include: How do you do C< ($a + $b) * $c > if parentheses are forbidden for mathematical expressions? -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: exegesis 5 question: matching negative, multi-byte strings

2002-10-02 Thread Markus Laire
' very well. What about Perl 5: /(.*?)(?:union|$)/ Perl 6: /(.*?) [union | $$]/ or if you want to exlude 'union' from match Perl 5: /(.*?)(?=union|$)/ Perl 6: /(.*?) [ | $$]/ IMHO those should scan string one char at a time until 'union' or end- of-string, which is optimal solution. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Perl6 Operator List, TAKE 4

2002-10-28 Thread Markus Laire
that I've not paid alot of attention to this > >thread...but does that mean 0x1234 and 01234 (octal) go away or is > >this an omission? > > While we're at it, maybe we can add in 0rMCM to allow roman numerals > too... -- What about specifying endiannes also, or wo

Re: Wh<[ie]>ther Infix Superposition ops

2002-10-29 Thread Markus Laire
; especially seems to be superficial, as it's just 'this or that' operation in this case, and so single operator fits perfectly. Also the idea of allways using 'function' style for something so basic like superpositions doesn't appeal to me. Of course this might just

Re: Wh<[ie]>ther Infix Superposition ops

2002-10-30 Thread Markus Laire
On 29 Oct 2002 at 11:22, Jonathan Scott Duff wrote: > On Tue, Oct 29, 2002 at 10:13:39AM +0200, Markus Laire wrote: > > Also the idea of allways using 'function' style for something so > > basic like superpositions doesn't appeal to me. > > Superpositions are

RE: [RFC] Perl6 Operator List, Take 5

2002-10-30 Thread Markus Laire
.10)? > > And what would ('a' .. 'z') - 1 mean? If we are going to do math with ranges, we definitely need non- discreet ranges also. Or at least make sure it's easy enough to implement as a class. (1.9 .. 2.1) + (5..7) * (72.49 .. 72.51); -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: worth adding collections to the core language?

2002-10-30 Thread Markus Laire
as a backup for those unfortunates who can't use «+» - like ^[+] What are the good reasons not to use «» ? -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: [RFC] Perl6 Operator List, Take 5

2002-10-30 Thread Markus Laire
On 30 Oct 2002 at 15:24, Jonathan Scott Duff wrote: > On Wed, Oct 30, 2002 at 11:10:54PM +0200, Markus Laire wrote: > > If we are going to do math with ranges, we definitely need non- > > discreet ranges also. Or at least make sure it's easy enough to > > implement

Re: Vectorizing operators for Hashes

2002-10-31 Thread Markus Laire
ä jaettuna kaksi At least it wouldn't harm anyone to allow this. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Perl6 Operator (REMAINING ISSUES)

2002-10-31 Thread Markus Laire
I don't know of a XIM > implementation for general Unicode. (Although if you log into your > Unix machine using Kermit-95, it has a keystroke sequence for > arbitrary Unicode input). Emacs and vim also works on Windows, not just UNIX. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

RE: Perl6 Operator (REMAINING ISSUES)

2002-11-01 Thread Markus Laire
On 31 Oct 2002 at 16:04, Brent Dax wrote: > Markus Laire: > # Emacs and vim also works on Windows, not just UNIX. > > So does DOS 'edit'. That doesn't mean Windows users use it. Windows > users want tools that look and act like Windows tools--if they didn&#

Re: UTF-8 and Unicode FAQ, demos

2002-11-02 Thread Markus Laire
ea of having Unicode > operators. It may seem idiotic to the egocentric people who only needs chars a-z in his language. But for all others (think about Chinese), Unicode is real asset. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Perl 6 documentation project mailing list

2002-11-08 Thread Markus Laire
. :-) There are few messages going there now, but at least I don't receive them via perl6-all, only via perl6-documentation (I'm on both lists, just in case) -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Initial notes

2002-11-09 Thread Markus Laire
to provide too exact and final documentation at once. Just define each area "with enough detail" (whatever that means) and then move on. Until whole language-design is somewhat complete, there will be things which requires earlier decisions to be changed. -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: faq

2002-11-13 Thread Markus Laire
ing full parrot, perl6, other parrot-supported languaged, etc.. This 2nd step might be e.g. Bytecode-compiled perl6-program which is simple enough to work with miniparrot. (Here might be some mistakes, but this is as I understand this, based on active lurking here) -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

Re: Numeric Literals (Summary)

2002-11-17 Thread Markus Laire
On 15 Nov 2002 at 12:02, Dave Whipp wrote: > A couple more corner cases: > > $a = 1:0; #error? or zero Shouldn't base-1 be: 1:0 == 10:0 1:1 == 10:1 1:11 == 10:2 1:111 == 10:3 1:1010111 == 10:5 etc.. Also 0:0 == 10:0 -- Markus Laire 'malaire' <[EMAIL PROTECTED]>

  1   2   >