On May 21, 2006, at 3:46, chromatic (via RT) wrote:
The multi-dispatch signature checking code in src/mmd.c does not know
anything
about :flat calls when it constructs the signature tuple for
dispatching.
Exactly. Snippets from S06:
Multimethod and multisub invocants are specified
On Sunday 21 May 2006 03:03, Leopold Toetsch via RT wrote:
Invocants are the first few *positional* arguments used for a function
call, but certainly not arguments inside some kind of flattening
container.
Imagine you have instead of ...
'foo'( args :flat )
end
.end
.sub
You folks took me too literally :) I meant: Given a system without
pugs/parrot/haskell (I assume perl5 is required), what are the things you
need to install so that you can say
perl6 -e say 'hello world'
i.e.
tar xf ghc.tar.gz
./configure
make
make install
tar xf parrot.tar.gz
make
make test
Leopold Toetsch [EMAIL PROTECTED] wrote:
On May 21, 2006, at 19:13, chromatic wrote:
That's unfortunate. I thought :flat was like the splatty behavior in
Perl 6.
Reading up and down the S and As, I don't see any indication that Perl6
is using anything other then positional arguments for
On Sunday 21 May 2006 13:29, Matt Diephouse wrote:
I think chromatic means that he thought :flat _was_ positional. That's
certainly what I thought.
Yes, exactly. I thought :flat and :slurpy were symmetric.
Look at the Flattening argument lists
section of S06:
sub foo($x, $y, $z)
On May 21, 2006, at 22:29, Matt Diephouse wrote:
foo([,[EMAIL PROTECTED]); # okay: @onetothree flattened to
three args
In this example, $x, $y, and $z are positional args. I would expect C
foo(1,2,3) and C foo([,[EMAIL PROTECTED]) to be identical calls --
even wrt multi
On Sunday 21 May 2006 13:54, Leopold Toetsch wrote:
That's still no sign of providing multi invocants
From S06:
sub foo($x, $y, $z) {...}# expects three scalars
...
To flatten before the list is even passed into the subroutine, use the eager
list operator:
foo([,] eager
In an effort to keep the source tree nice and tidy, I'd like to
propose that we remove the following languages from the Parrot source
tree:
- languages/conversion/
This was added more than 3.5 years ago. It's supposed to be a
BNF to Perl6 Rules translator. I don't think its ever been
Author: chromatic
Date: Sun May 21 14:11:09 2006
New Revision: 9305
Modified:
doc/trunk/design/syn/S06.pod
Log:
Minor typo fix.
Modified: doc/trunk/design/syn/S06.pod
==
--- doc/trunk/design/syn/S06.pod
FYI: These are items just added to various sections of the Perl 6 Users FAQ
(www.athenalab.com/ http://www.athenalab.com/Perl_6_Users_FAQ.htm
Perl_6_Users_FAQ.htm).
Some are new, some are reworded, some are from recent posts. Thanks to those
who posted and/or emailed feedback.
Yep, I knew what you meant! I'm in the process of writing this up
right now, assuming I can finish compiling Haskell sometime this week
(it ain't exactly a fast compile, hrmph).
--Michael Mathews
onperl.org
On 21/05/06, James Peregrino [EMAIL PROTECTED] wrote:
You folks took me too literally
On May 21, 2006, at 23:10, chromatic wrote:
foo([,] eager @onetothree); # array flattened before foo
called
Hmm, seems that another call signature bit is in order then, which
looks into flattening arrays for multi dispatch purposes.
leo
On Sunday 21 May 2006 15:23, Leopold Toetsch via RT wrote:
Hmm, seems that another call signature bit is in order then, which
looks into flattening arrays for multi dispatch purposes.
I'm not sure it's just multi-dispatch; it looks like all signature checking.
The foo() in the example I
Let's say that I'm writing a test suite for a Perl module which creates
files and then, optionally, moves those files to predetermined
directories. To test this module's functionality, I would have to see
what happens when the user running the tests does not have write
permissions on the
On May 21, 2006, at 7:29 PM, James E Keenan wrote:
Let's say that I'm writing a test suite for a Perl module which
creates files and then, optionally, moves those files to
predetermined directories. To test this module's functionality, I
would have to see what happens when the user
15 matches
Mail list logo