Re: Formal Parameters To While Block

2005-04-30 Thread Luke Palmer
Autrijus Tang writes: > On Tue, Apr 26, 2005 at 09:37:51AM -0600, Luke Palmer wrote: > > Joshua Gatcomb writes: > > > The solution is formal parameters. The trouble is I > > > can't seem to find a good example in S04 that matches > > > what I am trying to do. > > > > > > while $ref() -> @array {

Re: Junctions of classes, roles, etc.

2005-04-30 Thread Brent 'Dax' Royal-Gordon
Aaron Sherman <[EMAIL PROTECTED]> wrote: > On Sat, 2005-04-30 at 22:24 +0800, Autrijus Tang wrote: > > On Sat, Apr 30, 2005 at 09:13:26AM -0500, Abhijit Mahabal wrote: > > > I do not see how any auto-threading occurs in that code. It is completely > > > innocuous in that sense, and I don't think th

Re: Formal Parameters To While Block

2005-04-30 Thread Autrijus Tang
On Tue, Apr 26, 2005 at 09:37:51AM -0600, Luke Palmer wrote: > Joshua Gatcomb writes: > > The solution is formal parameters. The trouble is I > > can't seem to find a good example in S04 that matches > > what I am trying to do. > > > > while $ref() -> @array { ... } > > We're thinking at the mom

Re: Junctions of classes, roles, etc.

2005-04-30 Thread Abhijit Mahabal
On Sat, 30 Apr 2005, Aaron Sherman wrote: On Sat, 2005-04-30 at 22:24 +0800, Autrijus Tang wrote: On Sat, Apr 30, 2005 at 09:13:26AM -0500, Abhijit Mahabal wrote: I do not see how any auto-threading occurs in that code. It is completely innocuous in that sense, and I don't think that is what horrif

Re: Junctions of classes, roles, etc.

2005-04-30 Thread Aaron Sherman
On Sat, 2005-04-30 at 22:24 +0800, Autrijus Tang wrote: > On Sat, Apr 30, 2005 at 09:13:26AM -0500, Abhijit Mahabal wrote: > > I do not see how any auto-threading occurs in that code. It is completely > > innocuous in that sense, and I don't think that is what horrified David. > > What was troubl

Re: Formal Parameters To While Block

2005-04-30 Thread Luke Palmer
Aaron Sherman writes: > On Tue, 2005-04-26 at 09:37 -0600, Luke Palmer wrote: > > > We're thinking at the moment that `while` will probably look like this: > > > > sub statement: (&cond is lazy, &block) { > [...] > > Just curious, why a sub and not a macro? Didn't need a macro. statement:

Re: Junctions of classes, roles, etc.

2005-04-30 Thread Autrijus Tang
On Sat, Apr 30, 2005 at 09:13:26AM -0500, Abhijit Mahabal wrote: > I do not see how any auto-threading occurs in that code. It is completely > innocuous in that sense, and I don't think that is what horrified David. > What was troublesome was, I think: > my Str|Int $x; > $x.foo(); # r

Re: Junctions of classes, roles, etc.

2005-04-30 Thread Abhijit Mahabal
On Fri, 29 Apr 2005, Brent 'Dax' Royal-Gordon wrote: David Storrs <[EMAIL PROTECTED]> wrote: On Thu, Apr 28, 2005 at 03:28:41PM +0200, Ingo Blechschmidt wrote: so we had junctions of Code references some days ago, what's with junctions of Class and Role objects? :) Could we see some code that shows

Re: Formal Parameters To While Block

2005-04-30 Thread Aaron Sherman
On Tue, 2005-04-26 at 09:37 -0600, Luke Palmer wrote: > We're thinking at the moment that `while` will probably look like this: > > sub statement: (&cond is lazy, &block) { [...] Just curious, why a sub and not a macro? > That does pose a problem with: > > given $foo { > until

Re: Sun Fortress and Perl 6

2005-04-30 Thread Autrijus Tang
On Sat, Apr 30, 2005 at 08:41:52AM +0200, Leopold Toetsch wrote: > Anyway Parrots MMD system depends on types. *If* the Perl6 compiler defines > above array as > > cl = subclass "FixedFloatArray", "num_Array_shape_3_3_3" Yes, that is what I am planning to emit for hierarchical and other subtype

Re: Sun Fortress and Perl 6

2005-04-30 Thread Leopold Toetsch
Autrijus Tang <[EMAIL PROTECTED]> wrote: > my sub get_book () of Hash of Array of Recipe {...} > my num @nums = Array of num.new(:shape(3;3;3)); > Does Parrot's MMD carry this type information natively? Neither of above. But: multi sub foo(Int $a, Num $b) { ... } aka .sub foo @MUL