Re: undo()?

2004-07-01 Thread Brent 'Dax' Royal-Gordon
and then dequeues and invokes another thread's continuation. But that's not what you're asking at all.) -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

The .bytes/.codepoints/.graphemes methods

2004-06-26 Thread Brent &#x27;Dax&#x27; Royal-Gordon
needs said ambiguity removed. * Allows us to reuse constructs (e.g. slicing). * Opens up a few previously-difficult constructs (like getting the ord() of an arbitrary character). -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: definitions of truth

2004-06-26 Thread Brent &#x27;Dax&#x27; Royal-Gordon
t would still require a "use" statement to get at, and people often wouldn't design their modules to use it the way they do for Int, Num and String. -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: definitions of truth

2004-06-25 Thread Brent &#x27;Dax&#x27; Royal-Gordon
{ next METHOD; } } } -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: definitions of truth

2004-06-24 Thread Brent &#x27;Dax&#x27; Royal-Gordon
not as happy as you think: my $foo = '0'; my String $bar = '0'; if $foo { say 'foo true' } if $bar { say 'bar true' } Would print 'bar true', but not 'foo true'. (In other words, variables of type Any keep the Perl 5 behav

Re: cmd line like switches for functions and operators.

2004-06-22 Thread Brent &#x27;Dax&#x27; Royal-Gordon
to `$new'" if $verbose; ... } The colon is just a different syntax for a pair constructor; "say" is what many languages call "printline". -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: div operator

2004-06-20 Thread Brent &#x27;Dax&#x27; Royal-Gordon
use integer; #Perl 5 my int ($t); #Perl 6 $t = time - $when_it_happen; $sec=$t%60; $t=int($t/60); $min=$t%60; $t=int($t/60); $hours=$t%24; $t=int($t/24); $days=$t; return time_elapsed($days,$hours,$min,$sec) -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl a

Re: Yadda yadda yadda some more

2004-05-14 Thread Brent &#x27;Dax&#x27; Royal-Gordon
w, MyObj $src) {...} -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: $foo.s/foo/bar/

2004-05-12 Thread Brent &#x27;Dax&#x27; Royal-Gordon
then use $foo.s/// to get the new string ang $foo.=s/// to mutate $foo. Working from the other direction, parens are not valid pattern delimiters, leaving s() open for use: print s(/:g \w+/, 'WORD'); (Or somesuch...dunno about the positioning of :g.) -- Brent "Dax" Royal

Re: Named parameters vs. slurpy hash syntax: brittle call syntax!

2004-05-06 Thread Brent &#x27;Dax&#x27; Royal-Gordon
alidate any named parameters they add in later versions. -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: A12: Conflicting Attributes in Roles

2004-04-23 Thread Brent &#x27;Dax&#x27; Royal-Gordon
oes a handles <>; does b handles <>; } -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: A12: syntax to call Attributes

2004-04-21 Thread Brent &#x27;Dax&#x27; Royal-Gordon
legs, or %.legs Which actually brings up an interesting question: class Silly { has $.thing=1; has @.thing=(2, 3); has %.thing=(4 => 5, 6 => 7); } my $silly=new Silly(); say $silly.thing.class;#Int, Array, or Hash? -- Brent "Dax" Royal-

Re: A12: default accessors and encapsulation

2004-04-20 Thread Brent &#x27;Dax&#x27; Royal-Gordon
that's neither here nor there... [1] I'm certain there's a more efficient way to do this test, probably involving bit twiddling. Whatever. -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Apocalypse 12

2004-04-17 Thread Brent &#x27;Dax&#x27; Royal-Gordon
ad Larry's designing this language. Well done! -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: backticks

2004-04-16 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Jonathan Scott Duff wrote: On Fri, Apr 16, 2004 at 10:44:47AM -0700, Brent 'Dax' Royal-Gordon wrote: Regex aliases, threads, lexicals, junctions, and dwimmery make things a *lot* easier to program. This syntactic sugar you're proposing doesn't. But it *does* make an oft-u

Re: backticks

2004-04-16 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Juerd wrote: Brent 'Dax' Royal-Gordon skribis 2004-04-16 0:25 (-0700): I don't like %hash{'foo'} because it's ugly. I don't like %hash<> because it's ugly and adds syntax. I don't like %hash`foo because it's ugly, adds syntax, and looks

Re: backticks

2004-04-16 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Mark J. Reed wrote: Nope. I'd be perfectly happy if the modulus operator were spelled "mod" instead of %, which has never struck me as particularly intuitive. I always saw it as being a funny division sign. See the little slash in there? -- Brent "Dax" Royal-Gordon

Re: backticks

2004-04-16 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Juerd wrote: Brent 'Dax' Royal-Gordon skribis 2004-04-15 16:56 (-0700): 1. Allow %hash<> to be typed as %hash. There would be a conflict with numeric less-than, but we can disambiguate with whitespace if necessary. After all, we took the same solution with curlies. Curlie

Re: backticks

2004-04-15 Thread Brent &#x27;Dax&#x27; Royal-Gordon
s for removing the term ``, I see no compelling argument to do so. Perl has never been, and should never be, the sort of nanny language that makes fundamental operations less accessible just because they're security risks. Heck, we gave our users the 'x' operator, arguably the easies

Re: Compatibility with perl 5

2004-04-14 Thread Brent &#x27;Dax&#x27; Royal-Gordon
on, I think this closes both the Perl and # the Python block... -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Compatibility with perl 5

2004-04-14 Thread Brent &#x27;Dax&#x27; Royal-Gordon
i. If exactly one of the parses died on an error that disambiguates between the Perls (e.g. a package statement, a 'use 6'), emit the other's error message. ii. Otherwise, emit an ambiguity warning and both error messages. -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Default program

2004-04-01 Thread Brent &#x27;Dax&#x27; Royal-Gordon
o implement. On the other hand, the current behavior may be somewhat entrenched, and might break our promise to assume that code is Perl 5 until we see a different indication. As an alternative, perhaps the -H command-line switch could be used to use a "hello world" program. -- Brent &qu

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-25 Thread Brent &#x27;Dax&#x27; Royal-Gordon
Larry Wall wrote: say @bar.elems; # prints 1 C? Not C? -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Dereferencing Syntax (Was: Outer product considered useful)

2004-03-23 Thread Brent &#x27;Dax&#x27; Royal-Gordon
into list context. Which shouldn't affect anything. So I think it's probably a mistake. -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

[Semi-OT] The ^^ operator

2004-03-18 Thread Brent &#x27;Dax&#x27; Royal-Gordon
le dozen offshoots of that class, actually, which is really rather scary. Definitely been chatting with too many anime fans...) -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Mutating methods

2004-03-12 Thread Brent \&quot;Dax\&quot; Royal-Gordon
and* puts the less important bit on the LHS. Bah. Just use 'wa' and make the world learn Japanese. :^P -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Mutating methods

2004-03-10 Thread Brent \&quot;Dax\&quot; Royal-Gordon
Damian Conway wrote: / $foo:=(abc) $bar:=(def) / Am I misreading, or are you suggesting that $foo may contain 'abc' after running this example, even if the match wasn't successful? -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Ocea

Re: Mutating methods

2004-03-10 Thread Brent \&quot;Dax\&quot; Royal-Gordon
rhs => Perl::method_call.new( term => $lhs, method => $rhs, ) ); } TMTOWTDI, I suppose... -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

Re: Exegesis 7: Literal '{' in format string

2004-02-29 Thread Brent \&quot;Dax\&quot; Royal-Gordon
#x27;t special by itself. Would that need to be a double backslash in a double-quoted string, or is there some new Perl 6 magic that keep it from being needed? -- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

uc import

2004-02-23 Thread Brent \&quot;Dax\&quot; Royal-Gordon
ost assumes that import isn't going away entirely. --Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker Oceania has always been at war with Eastasia.

<    1   2