* Damian Conway ([EMAIL PROTECTED]) [08 Jul 2002 10:27]:
[...]
> > given my Doberman $sis is female = .dog[0] but pregnant -> $mother {
> > for my Doberman @puppies = new Doberman x $mother.littersize
> I'd have thought you'd need:
> for my Doberman @puppies = (new Doberman) x $mother
On Sunday 07 July 2002 05:33 pm, Ashley Winters wrote:
> my($foo, $bar) = for { $_ = new Stuff }
Err, the parser would die if I did that, never mind. Can I have each, perhaps?
*@foo = each { undef }
I shouldn't be programming on Sunday,
Ashley Winters
On Sunday 07 July 2002 04:10 pm, Ashley Winters wrote:
>
> given my Doberman $sis is female = .dog[0] but pregnant -> $mother {
> for my Doberman @puppies = new Doberman x $mother.littersize
In hindsight, I probably meant
for my Doberman @puppies = ^new Doberman x $mother.littersize
It's
Ashley Winters wrote:
> > $_ = new Doberman for $spot, $rover;
>
> Hmm, I thought the for topic was made ro at some point. Odd.
Not the standard $_ topic. Only named topics default to read-only.
> However, I still expect to be able to use my() in a loop condition/iterator
> and have it
> will perl6 still support the indirect object syntax? i thought it was
> going away and that would be:
>
> Doberman.new
That works too, but the indirect object syntax isn't going away.
TMTOWTDI, after all.
> also is $_ an lvalue alias (topic) for $spot and $rover?
Yep. Only *named* t
On Sunday 07 July 2002 03:05 pm, Damian Conway wrote:
> Ashley Winters wrote:
> > How about:
> >
> > $_ = new Doberman for my Dog ($spot, $rover) is rw;
>
> I don't think so.
>
> In Perl 6 you'd just need:
>
> $_ = new Doberman for $spot, $rover;
Hmm, I thought the for topic was made ro at
> "DC" == Damian Conway <[EMAIL PROTECTED]> writes:
DC> Ashley Winters wrote:
>> How about:
>>
>> $_ = new Doberman for my Dog ($spot, $rover) is rw;
DC> I don't think so.
DC> In Perl 6 you'd just need:
DC> $_ = new Doberman for $spot, $rover;
will perl6 still support th
Ashley Winters wrote:
> How about:
>
> $_ = new Doberman for my Dog ($spot, $rover) is rw;
I don't think so.
In Perl 6 you'd just need:
$_ = new Doberman for $spot, $rover;
Or, if you really did want that strong type-checking:
for $spot, $rover -> Dog $dog is rw { $dog = ne
On Sunday 07 July 2002 02:19 pm, Damian Conway wrote:
> Ashley Winters asked:
> > > It *might* possibly work to hyper the constructor:
> > >
> > > my ($a, $b) = ^new Foo
> >
> > Would prefix ^ always return 'wanted' number of repetitions? Like a
> > smart C?
>
> This does bother me about the a
Ashley Winters asked:
> > It *might* possibly work to hyper the constructor:
> >
> > my ($a, $b) = ^new Foo
>
> Would prefix ^ always return 'wanted' number of repetitions? Like a
> smart C?
This does bother me about the above proposed syntax/semantics. Hyperoperations
take their "magnitud
|Comments (otherwise you have things pretty much right):
]- that is good :")
|
|> Every subrotine or variable or method or object can have a "notes" (out of bound
|data)
|out-of-band data
]- yep
|> we can even have hyper-assignment :
|>
|> my ($a, $b) ^= new Foo;
|
|This is unlikely to do w
Ariel Scolnicov <[EMAIL PROTECTED]> writes:
[...]
> will apply to any method? To any sub? Can I call a sub 17 times by
> saying
>
> (undef) x 17 = foo(1,2,3);
That should be
(undef) x 17 = ^foo(1,2,3);
of course. Sorry.
[...]
--
Ariel Scolnicov|http://3w.compugen.co.il/
Larry Wall <[EMAIL PROTECTED]> writes:
> On Wed, 3 Jul 2002, Damian Conway wrote:
> : Date: Wed, 03 Jul 2002 19:33:33 -0400
> : From: Damian Conway <[EMAIL PROTECTED]>
> : To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> : Subject: Re: what's new
On Wednesday 03 July 2002 06:39 pm, Larry Wall wrote:
> On Wed, 3 Jul 2002, Damian Conway wrote:
> : Date: Wed, 03 Jul 2002 19:33:33 -0400
> : From: Damian Conway <[EMAIL PROTECTED]>
> : To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> : Subject: Re: what's
> : > we can even have hyper-assignment :
> : >
> : > my ($a, $b) ^= new Foo;
> :
> : This is unlikely to do what you wanted. It creates a new Foo object and then
> : assigns a reference to that one object to both $a and $b. It doesn't create two
> : Foo objects. (But maybe one object referenced t
On Wed, 3 Jul 2002, Damian Conway wrote:
: Date: Wed, 03 Jul 2002 19:33:33 -0400
: From: Damian Conway <[EMAIL PROTECTED]>
: To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
: Subject: Re: what's new continued
:
: Comments (otherwise you have things pretty much right):
I d
> > case2 - hyperoperator :
> >
> > my $result = 0;
> > for ($a,$b,$c) {
> >if ($x == $_) { $result =1; last}
> > }
>
> Not correct. The second case is the same as:
>
> ($x == $a, $x == $b, $x == $c)
>
> which reduces in effect to:
>
> $x == $c
Hold on---something's awry her
Comments (otherwise you have things pretty much right):
> Every subrotine or variable or method or object can have a "notes" (out of bound
>data)
out-of-band data
> we can even have hyper-assignment :
>
> my ($a, $b) ^= new Foo;
This is unlikely to do what you wanted. It creates a new Foo
me again,
At the moment based on Apo1->4 no ex's "walked" yet.
- There is a questions inside feel free to answer ... [?? ... ??]
- Also links for other reference implementation will be good.
- Also feel free to correct my english :")
What's new ?
Let me first mention this is in no means ful
19 matches
Mail list logo