On Mon, Mar 07, 2005 at 03:03:08AM +0200, Yuval Kogman wrote:
: On Sun, Mar 06, 2005 at 02:13:09 -0700, Luke Palmer wrote:
: > What is output:
: >
: > sub foo($x, ?$y, [EMAIL PROTECTED]) {
: > say "x = $x; y = $y; z = @z[]";
: > }
: >
: > my @a = (1,2,3);
: > foo($x, @a);
On Sun, Mar 06, 2005 at 03:15:23PM -0700, Luke Palmer wrote:
: But this allows the syntax '$x.foo $y', that is, an argument to a method
: call without parentheses. This isn't a big deal, and could even be
: construed as a feature, if it weren't for:
:
: for %hash.keys { ... }
:
: Which is mi
On Sun, Mar 06, 2005 at 12:30:43PM -0500, Garrett Rooney wrote:
: Autrijus Tang wrote:
: >On Sat, Mar 05, 2005 at 02:39:06PM -0700, Luke Palmer wrote:
: >
: >>Garrett Rooney writes:
: >>
: >>>Garrett Rooney wrote:
: >>>
: >>>
: Assuming the spec is correct, here's a patch to add some more tests
Yitzchak Scott-Thoennes <[EMAIL PROTECTED]> writes:
> main() unless caller;
I use this (and teach it in my trainings) as an easy way to insert
some basic verification tests in modules. At the end of the module:
unless ( caller ) {
package main;
... insert test code ...
}
-- Johan
Ron Blaschke <[EMAIL PROTECTED]> wrote:
> Here are the current test results on my WinXP, VC++ 7.1 box.
[ dynclasses failing ]
> Ron
> PS: Should I keep posting them from time to time, or are they of no
> interest to anyone?
Yes please / no. It shows current state and can serve as a reminder to
It would be very useful if tinderboxen could be revived.
Thanks,
leo
Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote:
>>
>>>Extra 0xA0 characters (Latin-1 no-break-spaces?)
> Curious. Reattached.
Thanks, applied.
leo
Alberto Manuel Brandao Simoes <[EMAIL PROTECTED]> wrote:
> Ok, this might be useless, but maybe you like to know:
> All tests successful, 1 test and 64 subtests skipped.
Good news and feedback is never useless.
Thanks,
leo
Leopold Toetsch wrote:
> Ron Blaschke <[EMAIL PROTECTED]> wrote:
>> Here are the current test results on my WinXP, VC++ 7.1 box.
> [ dynclasses failing ]
>> PS: Should I keep posting them from time to time, or are they of no
>> interest to anyone?
> Yes please / no. It shows current state and can
Selon Michael G Schwern <[EMAIL PROTECTED]>:
> On Sun, Mar 06, 2005 at 09:54:44PM +0100, S?bastien Aperghis-Tramoni wrote:
> > Instead of running the code on one server, where it's a problem, why
> > not running on machines where all prereq modules are already installed,
> > i.e. on machines where
Below is mainly a repost of the old proposal.
Two additions:
7) all object opcodes should go through the vtable. From there the
implementation can either call into Parrot's default (src/objects.c) or
do whatever the class system needs.
8) attribute access
We currently have:
8.1) via classoffset
Hi Richard,
[EMAIL PROTECTED] wrote:
Leo, you (or someone) might want to:
s/Poicephalus/Phoenix/
on parrotcode.org etc.
Yep, thanks. It's being worked on.
Greetinx to Germany,
leo
Below inline/attached is a proposal for Parrot core changes. I'll post a
more detailed proposal for 1) objects in a minute.
leo
Proposed steps towards the next release 0.2 and beyond.
These are numbered just for reference but are else in no particular
order. A lot can be done in parallel. A lot
On Sun, Mar 06, 2005 at 03:18:05PM +0200, Jarkko Hietaniemi wrote:
> Leopold Toetsch via RT wrote:
> > Jarkko Hietaniemi <[EMAIL PROTECTED]> wrote:
> >
> >
> >>Extra 0xA0 characters (Latin-1 no-break-spaces?) in the comments of
> >>a header file. Non-fatal but probably not intended, either. Pat
On Mon, 2005-03-07 at 11:01 +0100, Leopold Toetsch wrote:
> 4.1.1) implement a language pragma in assembler, e.g.:
>
> .HL_language Python
A pragma like that seems to split high-level languages into two groups:
those that are specially known to parrot, and those that are not. I'd
like it to be
I will try it out to see if it works for me. Now I know how to get the data
but how can I include this into a Makfile. If this were Perl-code I could use
MakeMaker but this way I need to do it somehow different.
By the way - in which file did you find this example.
Adrian
Am Montag, 7. MÃrz
Hello all,
while writing some experimental code with Pugs, I realised that it is a
bit hard for me to parse the following type of declaration:
sub greeting (Str $person) returns Str is export {
"Hello, $person"
}
Specifically, the 'is export' trait is too buried. Reformatting it
Leo, you (or someone) might want to:
s/Poicephalus/Phoenix/
on parrotcode.org etc.
When you get a spare minute ;-)
--
Ciao
Richard Foley
Ciao - shorter than aufwiedersehen
http://www.oreilly.com/catalog/perldebugpr/
-Original Message-
> Date: Sun, 6 Mar 2005 16:57:38 +0100
> Su
The following program:
-
my @first_set = qw(1 1 1 1 1 1 1 1 1 1 1 1 1 1);
my @new_set = qw(1 2 1 1 1 1 1 1 1);
if (any(@first_set) != any(@new_set)) {
"a fluctuation in the readings has been detected" . say;
}
Yields this error message:
-
[EMAIL PRO
Le dimanche 6 mars 2005, à 21 heures 31, Michael G Schwern écrivait :
> On Sun, Mar 06, 2005 at 10:01:19PM +0100, C?dric Bouvier wrote:
> > I have something almost working right now. I'd like to upload it to
> > CPAN (after I have at least improved the documentation kindly
> > written by Module::S
Roger Browne <[EMAIL PROTECTED]> wrote:
> On Mon, 2005-03-07 at 11:01 +0100, Leopold Toetsch wrote:
>> 4.1.1) implement a language pragma in assembler, e.g.:
>>
>> .HL_language Python
> A pragma like that seems to split high-level languages into two groups:
> those that are specially known to p
Adrian Lambeck <[EMAIL PROTECTED]> wrote:
[ please don't top post ]
> I will try it out to see if it works for me. Now I know how to get the
> data but how can I include this into a Makfile. If this were Perl-code
> I could use MakeMaker but this way I need to do it somehow different.
There's a
On Mon, Mar 07, 2005 at 09:54:36AM +0100, Leopold Toetsch wrote:
> It would be very useful if tinderboxen could be revived.
>
> Thanks,
> leo
>
Do we need a separate tinderbox, or do you think it might be helpful to
integrate parrot somehow into the current perl smoke reporting process?
There
On Sat, 5 Mar 2005, Leopold Toetsch wrote:
Andy Dougherty wrote:
make: *** No rule to make target `blib/include/unicode/ucnv.h', needed
by `src/string_primitives.o'. Stop.
This was fixed by Bernhard yesterday.
Thanks. I must have missed his fix by just a few hours. I'll check today
that th
wolverian wrote:
There are other ways to format the declaration, like indenting the
traits line:
Yes, I like:
sub greeting( Str $person )
returns Str
is export
{
"Hello, $person"
}
With the sub-line as some kind of intro and the block as the terminator.
A l
wolverian wrote:
Hello all,
while writing some experimental code with Pugs, I realised that it is a
bit hard for me to parse the following type of declaration:
sub greeting (Str $person) returns Str is export {
"Hello, $person"
}
don't know if it helps, but I guess that you can also
Sébastien Aperghis-Tramoni wrote:
Selon Michael G Schwern <[EMAIL PROTECTED]>:
On Sun, Mar 06, 2005 at 09:54:44PM +0100, S?bastien Aperghis-Tramoni wrote:
Instead of running the code on one server, where it's a problem, why
not running on machines where all prereq modules are already instal
At 07:50 AM 3/7/2005, Leopold Toetsch wrote:
Roger Browne <[EMAIL PROTECTED]> wrote:
> On Mon, 2005-03-07 at 11:01 +0100, Leopold Toetsch wrote:
>> 4.1.1) implement a language pragma in assembler, e.g.:
>>
>> .HL_language Python
Sounds good to me except that I would prefer you remove the HL_
and
On Sun, Mar 06, 2005 at 06:40:20PM -0700, Jim Cromie wrote:
> Ive written some tests that verify writing to STDOUT, etc,
> which were easy to do as `$X ... ` jobs.
>
> but these dont get covered by default, so my coverage results are not
> what they should be.
> Is there an easy way to do what
On Sun, Mar 06, 2005 at 09:19:05PM -0800, Ofer Nave wrote:
> Doesn't is_deeply do everything eq_array and eq_hash does and more? It
> looks like is_deeply has the same exact interface and purpose, except
> that it accepts both arrayrefs and hashrefs. So why would you need
> eq_array and eq_has
On Sun, Mar 06, 2005 at 11:58:43PM -0800, Larry Wall wrote:
> On Sun, Mar 06, 2005 at 02:13:09AM -0700, Luke Palmer wrote:
> : What is output:
> :
> : sub foo($x, ?$y, [EMAIL PROTECTED]) {
> : say "x = $x; y = $y; z = @z[]";
> : }
> :
> : my @a = (1,2,3);
> : foo($x, @a);
On Sun, Mar 06, 2005 at 10:42:53PM -0800, Ofer Nave wrote:
> t/Parallel-SimpleUndefined subroutine &main::prun called at
> Lastly, how come use_ok( 'Parallel::Simple' ) didn't bitch at me?
Because you already have an older version installed which does not have
a function called prun()? Sh
Bob Rogers <[EMAIL PROTECTED]> wrote:
>I don't see a way to do this at present. What I would like is an
> equivalent to .flatten_arg for a PCC return, e.g.:
> .pcc_begin_return
> .flatten_arg array_of_results
> .pcc_end_return
> Of course, ".flatten_
MrJoltCola <[EMAIL PROTECTED]> wrote:
> At 07:50 AM 3/7/2005, Leopold Toetsch wrote:
>> >>
>> >> .HL_language Python
> Sounds good to me except that I would prefer you remove the HL_
> and just call it .language to be consistent with other directives.
I don't care much about the actual keyword
On Sun, Mar 06, 2005 at 04:57:38PM +0100, Leopold Toetsch wrote:
> On behalf of the Parrot team I'm proud to announce the release of
> Parrot 0.1.2.
First: Congratulations to everyone for this release!
Second: What will it take before Parrot moves to a 0.2 (0.3, 0.4...)
release?
--Dks
On Mon, Mar 07, 2005 at 03:43:19PM +0100, Aldo Calpini wrote:
> don't know if it helps, but I guess that you can also write it like
> this, if you prefer:
>
> sub greeting(Str $person) {
> returns Str;
> is export;
> "Hello, $person";
> }
>
> (this guess is based
David Storrs wrote:
Urk. I, for one, will definitely find this surprising. I would have
expected:
x = ; $y = 1; z = 2 3
to obtain what you have expected, you need to explicitly treat the array
as a list of values with the unary splat:
foo($x, [EMAIL PROTECTED]);
But I suppose it's all a qu
On Mon, Mar 07, 2005 at 12:55:49PM +0200, wolverian wrote:
: Hello all,
:
: while writing some experimental code with Pugs, I realised that it is a
: bit hard for me to parse the following type of declaration:
:
: sub greeting (Str $person) returns Str is export {
: "Hello, $person"
:
On Mon, Mar 07, 2005 at 08:27:10AM -0800, David Storrs wrote:
: On Mon, Mar 07, 2005 at 03:43:19PM +0100, Aldo Calpini wrote:
:
: > don't know if it helps, but I guess that you can also write it like
: > this, if you prefer:
: >
: > sub greeting(Str $person) {
: > returns Str;
: >
I think I will call it Run::Distributed after all.
--
C Ã d r i c B o u v i e r
Le dimanche 6 mars 2005, Ã 22 heures 01, CÃdric Bouvier Ãcrivait :
> Hello there.
>
> I once had to organize the stress testing of a web based application.
> The client wanted to know whether the server would han
CÃdric Bouvier wrote:
I think I will call it Run::Distributed after all.
theres also module-authors@perl.org that discusses name-space choices
regularly.
Larry Wall wrote:
Yes, and it wouldn't work at all if you ever wanted to autoload anything.
If we ever get to where we're autoloading class bodies, they'd have the
same problem with embedded declarations. The compiler can't work with
information that isn't there.
This is something that is blurry t
On Mon, Mar 07, 2005 at 05:36:08PM +0100, Aldo Calpini wrote:
: but then, you could define:
:
: multi sub bar($x, $y, $z) { ... }
: multi sub bar(@coords is shape(3)) {
: my($x, $y, $z) = @coords;
: return bar($x, $y, $z);
: }
:
: bar(@coords); # ok now
Or, assumi
On Mon, Mar 07, 2005 at 11:45:52AM +0100, S?bastien Aperghis-Tramoni wrote:
> > * As mentioned, Devel::Cover is not perfect and often screws up test
> > results, threading particularly is a problem, so that it will give
> > false negatives. This is a common problem, one example is Test::More.
On Mon, Mar 07, 2005 at 07:45:39AM -0700, Jim Cromie wrote:
> Theres another issue: coverage can depend upon presense of other modules,
> ex Test::Warnings, being installed on testers boxes, those tests would
> be skipped otherwise,
> and perceived coverage would suffer.
That's ok. The overall
David Storrs <[EMAIL PROTECTED]> wrote:
> First: Congratulations to everyone for this release!
Thank you.
> Second: What will it take before Parrot moves to a 0.2 (0.3, 0.4...)
> release?
See subject: Proposed steps towards the next release 0.2 and beyond.
It also depends on the progress we m
HaloO,
another self-reply :)
I've added a little hack that classifies strings
into these areas 0 to 3 to illustrate my idea of
a type lattice on which composes the background
of the Perl 6 Type System. Pattern matching and
type systems are related but the question for
Perl 6 is: how exactly?
The to
Larry Wall skribis 2005-03-07 8:40 (-0800):
> method foo ($self: $odd returns Int where { $_ % 1 }, $even
> return Int where { not $_ % 1 }, Block ?&permutator, [EMAIL PROTECTED])
> returns Footype is good is bad is ugly { ... }
That someone took the time to bring this up pleases me.
On Mon, Mar 07, 2005 at 05:53:23PM +0100, Thomas Sandlaß wrote:
: Larry Wall wrote:
: >Yes, and it wouldn't work at all if you ever wanted to autoload anything.
: >If we ever get to where we're autoloading class bodies, they'd have the
: >same problem with embedded declarations. The compiler can't
CÃdric Bouvier wrote:
I think I will call it Run::Distributed after all.
http://search.cpan.org/search?query=%5Erun%3A%3A&mode=module
Looks like there's no Run::* namespace yet, and you usually need a
pretty good justification to start a new namespace.
If your module is just a generic way to r
Michael G Schwern wrote:
On Mon, Mar 07, 2005 at 07:45:39AM -0700, Jim Cromie wrote:
Theres another issue: coverage can depend upon presense of other modules,
ex Test::Warnings, being installed on testers boxes, those tests would
be skipped otherwise,
and perceived coverage would suffer.
On Mon, Mar 07, 2005 at 11:24:42AM -0700, Jim Cromie wrote:
> Michael G Schwern wrote:
>
> >That's ok. The overall coverage report can show the union of all
> >reports for that version of the module.
>
> That'd be cool, but how does this merge/combining magically happen ?
To do it properly it
On Mon, Mar 07, 2005 at 11:24:42AM -0700, Jim Cromie wrote:
> are MM or MB analyses posted anywhere for general perusal ?
Nope. You're free to run it yourself though. :)
Its likely to be pretty appauling because of all the multi-platform code and
that XS code is untested.
> That'd be cool, but
Okay, a quick update on my situation ...
1. I completed the committer registration with the Pugs repository.
1.1 No problems per se, but the new member agreement was written in
Chinese so I couldn't read it (the Google translate tool wasn't much
help); so I just clicked through it.
2. Download
Michael G Schwern wrote:
On Mon, Mar 07, 2005 at 11:24:42AM -0700, Jim Cromie wrote:
are MM or MB analyses posted anywhere for general perusal ?
Nope. You're free to run it yourself though. :)
Its likely to be pretty appauling because of all the multi-platform code and
that XS code is unte
Le lundi 7 mars 2005, à 08 heures 05, Michael G Schwern écrivait :
> On Mon, Mar 07, 2005 at 01:33:43PM +0100, C?dric Bouvier wrote:
> > Maybe this list is not the right place to ask after all.
>
> module-authors@perl.org maybe?
>
Thank you Jim and Michael for the hint. I will post there. My ap
On Mon, Mar 07, 2005 at 12:54:00PM -0700, Jim Cromie wrote:
> >Nope. You're free to run it yourself though. :)
> >
> >Its likely to be pretty appauling because of all the multi-platform code
> >and that XS code is untested.
>
> I'll just take your word for it. :-)
Well, I ran it myself and it i
I was trying to work out how to get non-integer indexes working for an
array -- initially using linear interpolation, though perhaps later it
would be generalized. Can anyone comment on whether this simple role
would work as I expect. Does defining the invocant as "Num @self is
constant" constr
Larry Wall wrote:
Or, assuming you might want to generalize to N dimensions someday, just
sub bar ([EMAIL PROTECTED]) {...}
and deal with it as in Perl 5 as a variadic list. I suppose one could say
sub bar ([EMAIL PROTECTED] is shape(3)) {...}
and get checking on the argument count.
if I u
Hello,
if I try the ncurses_life.imc demo I get the error "Null PMC access in
invoke()".
This is the debug output:
[EMAIL PROTECTED]:~/tmp/parrot/examples/assembly> parrot -d ncurses_life.imc
*** Parrot VM: Setting stack top. ***
*** Parrot VM: Slow core ***
*** Parrot VM: Setting up ARGV array
Dave Whipp wrote:
Does defining the invocant as "Num @self is constant" constrain the application
> of the role to read-only uses of indices?
I don't think you need "is constant". arguments are readonly by default,
unless you give them the "is rw" trait. I guess that "is constant" means
that you
Aldo Calpini wrote:
I don't think you need "is constant". arguments are readonly by default,
unless you give them the "is rw" trait. I guess that "is constant" means
that you can specify the index only using a literal, not a variable, eg:
@test[1]; # ok, 1 is a costant
my $idx = 1;
@
On Mon, Mar 07, 2005 at 05:36:08PM +0100, Aldo Calpini wrote:
> David Storrs wrote:
> >Urk. I, for one, will definitely find this surprising. I would have
> >expected:
> >
> > x = ; $y = 1; z = 2 3
>
> to obtain what you have expected, you need to explicitly treat the array
> as a list of value
On Mon, Mar 07, 2005 at 07:59:40PM +0100, Paul Johnson wrote:
> To do it properly it would need to be on a machine somewhere which would
> accept uploaded coverage databases from anyone who wanted to submit one.
>
> I discussed cover.perl.org or something with Andy and Robrt on irc a
> while back
On Mon, 7 Mar 2005, Andy Dougherty wrote:
On Sat, 5 Mar 2005, Leopold Toetsch wrote:
Andy Dougherty wrote:
make: *** No rule to make target `blib/include/unicode/ucnv.h', needed
by `src/string_primitives.o'. Stop.
This was fixed by Bernhard yesterday.
Thanks. I must have missed his fix by ju
MS Windows XP SP2, MinGW non-professional build
http://wiki.kn.vutbr.cz/mj/index.cgi?Build%20Parrot%20with%20MinGW
Failed TestStatus Wstat Total Fail Failed List of Failed
imcc/t/imcpasm/opt1.t 1 2
# New Ticket Created by Andy Dougherty
# Please include the string: [perl #34366]
# in the subject line of all future correspondence about this issue.
# https://rt.perl.org/rt3/Ticket/Display.html?id=34366 >
t/op/trans.t tests the atan2() function for some "exceptional" cases
involving negat
On Mon, 2005-03-07 at 20:43 +0100, Uwe Voelker wrote:
> if I try the ncurses_life.imc demo I get the error "Null PMC access in
> invoke()".
> I'm sure it has problems with the ncurses NCI. How can I solve the problem?
Apply this patch, then let me know if it fixes it for you so that I can
check
On Mon, Mar 07, 2005 at 10:33:11PM +, Nicholas Clark wrote:
> On Mon, Mar 07, 2005 at 07:59:40PM +0100, Paul Johnson wrote:
>
> > To do it properly it would need to be on a machine somewhere which would
> > accept uploaded coverage databases from anyone who wanted to submit one.
> >
> > I di
Autrijus and Co.
I have found another weird bug. It apprears to be a problem with the
way the return statement handles Array refs and Hash refs in scalar
context. I have some tests in t/op/sub_return_values.t which test the
array ref problem. I will try and flesh out the hash-ref tests in the
s
On Mon, Mar 07, 2005 at 10:29:58PM +0100, Aldo Calpini wrote:
: Larry Wall wrote:
: >Or, assuming you might want to generalize to N dimensions someday, just
: >
: >sub bar ([EMAIL PROTECTED]) {...}
: >
: >and deal with it as in Perl 5 as a variadic list. I suppose one could say
: >
: >sub
On Mon, Mar 07, 2005 at 02:20:47PM -0800, David Storrs wrote:
: Yes, I know. That's what I meant by "...arrays are objects...(sort
: of)." They are objects in the sense that they are sort of references
: and sort of not and that they have behavior built into them
: (e.g. C<.length>). They won't a
On Mon, Mar 07, 2005 at 04:58:29PM -0800, Larry Wall wrote:
>
> In fact, we really haven't specified what happens when you say
>
> my Int @a is shape(3) := [1,2];
> my Int @b is shape(3) := [1,2,3,4];
>
[...]
> But I also have this nagging feeling that the user wouldn't have
> specified
On Mon, Mar 07, 2005 at 05:15:14PM -0800, Larry Wall wrote:
> On Mon, Mar 07, 2005 at 02:20:47PM -0800, David Storrs wrote:
> : Yes, I know. That's what I meant by "...arrays are objects...(sort
>
> No, they're real objects. (Though it's .elems rather than .length, since
> we've banished the "l"
Hello, this mail is an analysis of implementing operator ternary
operator "?? ::" in pugs.
Welcome for suggestions.
I. ?? :: in pugs
The implementation of ?? :: in pugs is buggy. Below are two perl
6 expressions
which pugs can NOT parse.
1. '(1 ?? 2 :: 3)' should return 2. t/03operato
On Mon, Mar 07, 2005 at 05:56:12PM -0800, David Storrs wrote:
: On Mon, Mar 07, 2005 at 05:15:14PM -0800, Larry Wall wrote:
: > On Mon, Mar 07, 2005 at 02:20:47PM -0800, David Storrs wrote:
: > : Yes, I know. That's what I meant by "...arrays are objects...(sort
: >
: > No, they're real objects.
Perl 6 Summary for 2005-02-22 though 2005-03-07
All~
Welcome to yet another fortnight summary. Once again brought to you by
chocolate chips. This does have the distinction of being the first
summary written on a mac. So if I break into random swear words, just
bear with me.
On Mon, Mar 07, 2005 at 05:37:53PM -0800, David Storrs wrote:
: On Mon, Mar 07, 2005 at 04:58:29PM -0800, Larry Wall wrote:
: >
: > In fact, we really haven't specified what happens when you say
: >
: > my Int @a is shape(3) := [1,2];
: > my Int @b is shape(3) := [1,2,3,4];
: >
: [...]
:
On Mon, Mar 07, 2005 at 07:50:47PM -0800, Larry Wall wrote:
> On Mon, Mar 07, 2005 at 05:37:53PM -0800, David Storrs wrote:
> : On Mon, Mar 07, 2005 at 04:58:29PM -0800, Larry Wall wrote:
> : Is
> : there is then any way to explicitly leave off an element. Can I do
> : this:
> :
> : sub foo(
Is there a way to find the name of &?SUB ? It would be useful for
error-logging and -reporting.
--Dks
On Mon, Mar 07, 2005 at 09:49:04PM -0800, David Storrs wrote:
: Is there a way to find the name of &?SUB ? It would be useful for
: error-logging and -reporting.
$?SUBNAME, I think, unless &?SUB just stringifies to that. I guess
it's a good question whether &foo should stringify to "foo" or
"&
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
LW> On Mon, Mar 07, 2005 at 09:49:04PM -0800, David Storrs wrote:
LW> : Is there a way to find the name of &?SUB ? It would be useful for
LW> : error-logging and -reporting.
LW> $?SUBNAME, I think, unless &?SUB just stringifies to th
On Tue, Mar 08, 2005 at 01:55:07AM -0500, Uri Guttman wrote:
: why not leave it as $?SUB but it is an object and you use the .name
: method?
Uh, yeah. Obviously, 11 pm is still to early in the day for me...
: this way you won't clutter the namespace and you can add more
: methods like .signature
On Mon, Mar 07, 2005 at 08:58:44PM -0800, David Storrs wrote:
: Ok, rewrite; is THIS legal?:
:
: sub foo( Int [EMAIL PROTECTED] is shape(3) ) { ... }
: foo(1, 2, undef);
Yes, since Int can represent undef.
: The sense I'm trying to convey is:
:
: "Here is my sub. It takes three
> "LW" == Larry Wall <[EMAIL PROTECTED]> writes:
LW> On Tue, Mar 08, 2005 at 01:55:07AM -0500, Uri Guttman wrote:
LW> : why not leave it as $?SUB but it is an object and you use the .name
LW> : method?
LW> Uh, yeah. Obviously, 11 pm is still to early in the day for me...
I have just committed the first Perl 6 port of Locale::KeyedText
within the Pugs distro, as was the recommended course of action in
contrast to releasing to CPAN. This is the very first normal and
non-core CPAN module to be translated to Perl 6, afaik.
This module is identical to its Perl 5 co
86 matches
Mail list logo