On Tue, Apr 20, 2004 at 03:53:31PM -0400, Aaron Sherman wrote:
: In specific, here is a proposal for execution:
:
: multi run(string $command) returns(Process) {...} # Funky shell default
: multi run(Process $process) returns(Process) {...} # Relies on $process.cmdline
Eh? What does
role A {has Cat $.x;}
role B {has Dog $.x;}
class Foo {does Cat; does Dog;}
my Foo $bar;
$bar.x; # Is this a Cat or a Dog?
=
Jonathan Dataweaver Lang
__
Do you Yahoo!?
Yahoo! Photos: High-quality 4x6 digital prints for 25¢
How would I call attributes? Specifically, what if I'm calling a list
attribute from a scalar object?
my Dog $spot;
my Dog @pack;
$spot-@.legs; # INCORRECT (I hope)
[EMAIL PROTECTED]; # INCORRECT?
@spot.legs;# What if you also have @spot declared?
=
Jonathan Dataweaver
-Original Message-
From: Larry Wall [mailto:[EMAIL PROTECTED]
On Tue, Apr 20, 2004 at 03:53:31PM -0400, Aaron Sherman wrote:
: In specific, here is a proposal for execution:
:
: multi run(string $command) returns(Process) {...} # Funky shell default
: multi run(Process
-Original Message-
From: Jonathan Lang [mailto:[EMAIL PROTECTED]
role A {has Cat $.x;}
role B {has Dog $.x;}
class Foo {does Cat; does Dog;}
my Foo $bar;
$bar.x; # Is this a Cat or a Dog?
A12
If, however, two roles try to introduce a method of the same name (for some
definition
The Perl 6 Summary for the fortnight ending 2004-04-18
The only problem with summarizing two week's worth of Perl 6 happenings
is that there's twice as much stuff to summarize. Still, there's no way
I could have made the time to write a summary last week so I'll take my
lumps. I am
On Tue, Apr 20, 2004 at 10:51:04PM -0700, Larry Wall wrote:
Yes, that's in the works. The plan is to have four Unicode support levels.
These would be declared by lexically scoped declarations:
use bytes 'ISO-8859-1';
use codepoints;
use graphemes;
use letters 'Turkish';
Originally sent to Austin alone by accident
Austin Hastings wrote:
-Original Message-
From: Jonathan Lang [mailto:[EMAIL PROTECTED]
role A {has Cat $.x;}
role B {has Dog $.x;}
class Foo {does Cat; does Dog;}
my Foo $bar;
$bar.x; # Is this a Cat or a Dog?
A12
If, however, two roles
Jonathan Lang wrote:
How would I call attributes? Specifically, what if I'm calling a list
attribute from a scalar object?
my Dog $spot;
my Dog @pack;
$spot-@.legs; # INCORRECT (I hope)
[EMAIL PROTECTED]; # INCORRECT?
@spot.legs;# What if you also have @spot declared?
This
On Wed, 2004-04-21 at 04:19, Buddha Buck wrote:
From one C6PAN module:
role Dog {
has $.collar;
...
}
From a third C6PAN module:
class PoliceDog does Dog does LawEnforcementOfficer { ... }
role LawEnforcementOfficer {
method arrest { ... }
has $.collar;# for
On Wed, 21 Apr 2004, Brent 'Dax' Royal-Gordon wrote:
Which actually brings up an interesting question:
class Silly {
has $.thing=1;
has @.thing=(2, 3);
has %.thing=(4 = 5, 6 = 7);
}
I had assumed that'd be illegal: each of $.thing, @.thing and %.thing
On Wed, Apr 21, 2004 at 11:04:02AM +0100, Tim Bunce wrote:
: Hashes should handle various types of built-in key strings properly
: by default.
:
: What is properly for string?
The way it oughta, whatever that is... I was aiming to set policy
rather than implementation there. :-)
: Is it to
On Tue, Apr 20, 2004 at 10:55:51AM -0700, Larry Wall wrote:
The flip side is that, since we won't use C` as an operator in Perl
6, you're free to use it to introduce any user-defined operators
you like, including a bare C`. All is fair if you predeclare.
Most languages won't even give you that...
On Wed, Apr 21, 2004 at 01:02:15PM -0600, Luke Palmer wrote:
macro infix:\ ($cont, $key)
is parsed(/$?key := (-?letter\w* | \d+)/)
{
if $key ~~ /^\d+$/ {
($cont).[$key];
}
else {
($cont).«$key»;
}
}
That does all the magic at
On Wed, Apr 21, 2004 at 09:19:12PM +0200, Matthijs van Duin wrote:
On Wed, Apr 21, 2004 at 01:02:15PM -0600, Luke Palmer wrote:
macro infix:\ ($cont, $key)
is parsed(/$?key := (-?letter\w* | \d+)/)
{
if $key ~~ /^\d+$/ {
($cont).[$key];
}
else {
On Wed, Apr 21, 2004 at 03:37:23PM -0400, John Macdonald wrote:
What about $x\n? The backslash already has meaning in strings
I use hash elements far more often outside than inside strings, so I could
live with having to write $x«foo» for interpolated hash elements.
Anyway, you're missing the
16 matches
Mail list logo