Re: A modest question (Damian, see last para please?)

2004-01-20 Thread Damian Conway
Austin Hastings wrote: role Dog {must bark();} role Tree {must bark();} class crossPerson { method bark() {speak_sharply;} } class Trog does Tree does Dog { method bark() {bark_like_a_trog;} } multi sub purchase(Dog $mansBestFriend) {...} multi sub purchase(Tree $shrubbe

RE: Semantics of vector operations

2004-01-20 Thread Jonathan Lang
Austin Hastings wrote: > Larry Wall wrote: > > On the other hand, it's possible that we should extend the visual > > metaphor of »« and apply it asymmetrically when one of the arguments > > is expected to be scalar. That would mean that your last three lines > > would be written: > > > > (1,

Re: Comma Operator

2004-01-20 Thread Jonathan Lang
Joe Gottman wrote: >About a month ago, a thread here suggested that we change the meaning > of the comma operator. Currently, in scalar context the expression > foo(), bar() > means "evaluate foo(), discard the result, then return the value of > bar()". > It was suggested that this be chan

RE: Semantics of vector operations

2004-01-20 Thread Austin Hastings
> -Original Message- > From: Larry Wall [mailto:[EMAIL PROTECTED] > On the other hand, it's possible that we should extend the visual metaphor > of »« and apply it asymmetrically when one of the arguments is expected to > be scalar. That would mean that your last three lines would be wr

Re: Semantics of vector operations

2004-01-20 Thread Jonathan Lang
Larry Wall wrote: > Note that if we do take this approach, we'll have to require the space > after = in > > @list = «a b c d e»; Perl 6 has already set the precedent of the presence or absence of whitespace being syntactically important (as opposed to Python, where the amount and type of whi

Comma Operator

2004-01-20 Thread Joe Gottman
About a month ago, a thread here suggested that we change the meaning of the comma operator. Currently, in scalar context the expression foo(), bar() means "evaluate foo(), discard the result, then return the value of bar()". It was suggested that this be changed to return the 2-element arr

Re: Semantics of vector operations

2004-01-20 Thread Larry Wall
On Tue, Jan 20, 2004 at 01:54:33AM -0700, Luke Palmer wrote: : A thought occurred to me. What should this return: : : [1,2,3] »+« [4,5,6] : : At first glance, one might say [5,7,9]. But is that really the best : way to go? I'm beginning to think that it should be the same as : whatever [1,

This week's summary

2004-01-20 Thread The Perl 6 Summarizer
The Perl 6 Summary for the week ending 20040118 I hope you'll forgive the lack of banter before we start in on perl6-internals. Threads. Again. Still more proposals about threads this week. Jeff Clites offered some notes based on the Java Virtual Machine's threading model. Surpri

Semantics of vector operations

2004-01-20 Thread Luke Palmer
A thought occurred to me. What should this return: [1,2,3] Â+Â [4,5,6] At first glance, one might say [5,7,9]. But is that really the best way to go? I'm beginning to think that it should be the same as whatever [1,2,3]+[4,5,6] is, hopefully an error. Here's my reasoning. Substitute $a =