the command line arguments are stored in
@*ARGS.
I can't answer your question, sorry ;-).
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ - http://sudokugarden.de/ - http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
Hi,
brian d foy wrote:
In article [EMAIL PROTECTED], Moritz Lenz
[EMAIL PROTECTED] wrote:
Hi,
brian d foy wrote:
Under the section The for Statement in S04, it says that the diamond
operator
while( ) { ... }
becomes in Perl 6
for =$*ARGS { ... }
Some time ago I read
Hi,
brian d foy wrote:
At the moment the file test operators that I expect to return true or
false do, but the true is the filename.
that helps chaining of file test:
$fn ~~ :t ~~ :x
or something.
If you want a boolean, use
? $fn ~~ :x
or something.
HTH,
Moritz
--
Moritz Lenz
http
.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
Thomas Wittek wrote:
Moritz Lenz schrieb:
What makes Perl hard to read is the excessive use of special characters
(/\W/).
I disagree: The make it look ugly, but not hard to read.
Even if it's only ugly: To what advantage? I don't think ugliness is a
good characteristic of a programming
Moritz Lenz wrote:
Thomas Wittek wrote:
Moritz Lenz schrieb:
I would also like semicolons to be optional.
Most people don't ;-).
Oh, really? Source? :)
I paraphrased Larry Wall. Iirc it was everybody wants the semicolon or
something - correct me if I'm wrong.
sorry, masak++ pointed out
you'll end up doing the same as I did.
ATM I don't know that should be implemented, but perhaps somebody else
can think of a good way.
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
Thomas Wittek wrote:
Moritz Lenz:
=begin pod
=head3 Cmethod from_string(Str $s);
[..]
=end pod
method from_string(Str $s){
# implementation of that method here
}
Since method signatures are very expressive in Perl 6, there should be a
way of accessing them in the POD without
of lines, but in
terms of visual blocks (at least I do), so if everything in heredoc goes
verbatim into a string, I'd expect _everything_ in that block to go into
that string. Everything else looks like an artificial exception to me.
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de
beneath http://svn.pugscode.org/pugs/docs/,
perhaps essentials/
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
beneath http://svn.pugscode.org/pugs/docs/,
perhaps essentials/
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
so. Web is hopefully CGI done
right, and still in its early planning stage.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
extents.
You should discuss that on p5p, not here. Only Perl 6 is on topic here.
Is there a place where we can add suggestions ? apart from the first one in...
2003 ? 4 years ago ?
You can write them here on p6l.
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Smylers wrote:
Moritz Lenz writes:
You could help by contributing some suggestions to what the new Web
module should be able to do, and how so. Web is hopefully CGI done
right, and still in its early planning stage.
Web module? This is the first I've heard of it. Where is it being
a native type?
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
starting any kind of flame-fest
about anyone's favorite concurrency model here :-D
Why flame, when we can have all of them at once? ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
, and is not an
Erlang based language ;-)
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
I noticed that many test files contain old POD like this:
=pod
some description here
=cut
Should that all be replaced by the new POD?
=begin description
text here
=end description
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP
like macros, which are already specced - so never mind ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
just tell me, I'm
only following Perl 6 development for about a year).
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
repo contains pugs, STD.pm (the grammar), some
of synopsis (in docs/Perl6/Spec/), kp6 (in v6/v6-KindaPerl6), smop (in
v6/smop/) and various other stuff.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
John M. Dlugosz wrote:
I'm taking a stab at turning the S\d\d documents into a formal standard.
That's certainly a nice idea, and much work. ++ for taking it.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
[EMAIL PROTECTED] wrote:
Technically the Cartesian cross operator doesn't have an identity value.
It has.
The set which contains only the emty set, or in perl terms ([]);
Or am I missing something?
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
is MyMath {
method can_take_sqrt($x:){
True
}
...
}
That way a user of class MyMath can always call can_take_sqrt() to check
if she can satisfy the precondition.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP
an optimization to me that
doesn't need to be in perl 6.0.0. Of course any implementer is welcome
to do perform that optimization where possible ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
John M. Dlugosz wrote:
Moritz Lenz moritz-at-casella.verplant.org |Perl 6| wrote:
This is described in depth in Object oriented software construction by
Bertrand Meyer.
OK, reading about it in Wiki, I see what it's supposed to do.
PRE - derived classes may weaken but not strengthen
John M. Dlugosz wrote:
Moritz Lenz moritz-at-casella.verplant.org |Perl 6| wrote:
John M. Dlugosz wrote:
I posted my current work at
http://www.dlugosz.com/files/specdoc.pdf
and .odt.
3.1.1 Normalization uses a constant without a sigil - is that really
allowed?
Yes, it's
for/when is so
close...
I'd assume 'given' provides scalar context onto its argument, 'for'
obviously provides list context.
But I guess the main difference is that 'for' is associated with
iteration, and IMHO it feels unnatural to iterate over one item.
--
Moritz Lenz
http://moritz.faui2k3.org
'
that it defaults to 'my', or should it be 'our' like everything else?
--John
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
method !foo ...
my method foo ... # same, but foo is aliased to !foo
Am I right in assuming that the second example is valid only for roles?
I find this different syntax for classes and roles quite confusing. Is
it intended that way? I'd welcome a uniform syntax.
Cheers,
Moritz
--
Moritz
' is orthogonal to the scope of the class.
class A {
my method foo { }
}
class A is also {
method bar {
# no way to access self!foo here
}
}
So is
our method !foo {}
allowed in classes? and is it the recommended way to declare private
methods?
--
Moritz Lenz
http://moritz.faui2k3.org
exceptions ignore POST blocks anyway?)
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
signature.asc
Description: OpenPGP digital signature
Ryan Richter wrote:
On Tue, Jun 03, 2008 at 12:03:00PM +0200, Moritz Lenz wrote:
My last successful build was r18093 with GHC 6.6.1.
Maybe we should just die in Makefile.PL until somebody finds a fix.
Maybe we should just revert the pugs source to that rev. Haven't the
modifications since
specifies the
operation mode? Or are they both dump, and the regex engine does the
mapping from smart to dump itself?
Anyway, S29 needs clarification.
BTW the naming seems inconsistent to me: same*case* preserves *case*,
but same*base* preserves *accents*
--
Moritz Lenz
http://moritz.faui2k3
for free:
subset Crosshair of Point where { $_.inside_of($target_zone) };
Is that valid syntax?
Yes. See http://perlcabal.org/syn/S02.html#Polymorphic_types for similar
examples.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
hope I didn't confuse too much
here ;-)
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
('-')
Thanks!
Pm
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
, because there are two possible results, and will
revert to roots() for that.
Any thoughts?
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
policy on that? Will a 1.WHAT always return Int? do we
guarantee (1..4).WHAT always to be 'Range'?
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
(cross-posting to p6l)
Ryan Richter wrote:
On Thu, Jun 26, 2008 at 11:36:05AM +0200, Moritz Lenz wrote:
2) How do we know which numeric type is a class and which is a role? Is
there an explicit spec about the types of number literals? That could
have some impact on type checking
Mark J. Reed wrote:
On Thu, Jun 26, 2008 at 10:23 AM, Moritz Lenz
[EMAIL PROTECTED] wrote:
Thanks for the effort, but it also raises new questions. For example:
Int is Num
Rakudo doesn't do it that way, because the 'A is B' relation in OO means
Every instance of A is also an Instance of B
Trey Harris wrote:
In a message dated Thu, 26 Jun 2008, Moritz Lenz writes:
I assume that 'Num' is meant to be a non-complex.
Then it seems to make sense to assume:
Int is Rat
Rat is Num
Num is Complex
or am I off again?
S29 seems to have been assuming this, if I'm reading the multis
Larry Wall wrote:
On Thu, Jun 26, 2008 at 04:50:21PM +0200, Moritz Lenz wrote:
: I assume that 'Num' is meant to be a non-complex.
: Then it seems to make sense to assume:
: Int is Rat
: Rat is Num
: Num is Complex
: or am I off again?
Well, there's this little thing called Liskov
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
Conrad Schneiker wrote:
Moritz Lenz wrote (on perl6-compiler)
Patrick R. Michaud wrote:
+S02-builtin_data_types/num.t
S02-builtin_data_types/type.t
S02-literals/autoref.t
S02-literals/hex_chars.t# pure
S02-literals/radix.t
S02-polymorphic_types/subset
Complex.angle does)? Or simply fix the test to be agnostic to
complex planes?
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
Jon Lang wrote:
Larry Wall wrote:
On Tue, Jul 15, 2008 at 03:30:24PM +0200, Moritz Lenz wrote:
: Today bacek++ implement complex logarithms in rakudo, and one of the
: tests failed because it assumed the result to be on a different complex
: plane. (log(-1i) returned 0- 1.5708i, while 0 + 3/2
Jon Lang wrote:
Moritz Lenz wrote:
Jon Lang wrote:
By the principle of least surprise, I'd recommend against this. Most
programmers, when they see 'sqrt(1)', will expect a return value of 1,
And that's what they get unless they write it as sqrt(1 + 0i).
I suppose that you _could_ use
.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
.)
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
.
I would somewhat expect
a reference to be instead handled using a statement like
$foo[1] := $bar;
Comments and clarifications appreciated.
Pm
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
of items.
If you happen to have an Array already, you can interpolate it:
my @x = 1, 2, 3;
xsum(|@x);
HTH,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
argument
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
Moritz Lenz wrote:
Tests 34 to 36 were a bit overcritical:
(0|undef say not ok 34) || say not ok 34;
(0undef say not ok 35) || say not ok 35;
(0^undef say not ok 36) || say not ok 36;
but are easily corrected. The rest seem fine to me.
Easier said than done.
Question to p6l: do
Larry Wall wrote:
On Sun, Aug 24, 2008 at 09:22:25PM +0200, Moritz Lenz wrote:
: Moritz Lenz wrote:
: Tests 34 to 36 were a bit overcritical:
:
: (0|undef say not ok 34) || say not ok 34;
: (0undef say not ok 35) || say not ok 35;
: (0^undef say not ok 36) || say not ok 36
Patrick R. Michaud wrote:
On Mon, Aug 25, 2008 at 12:15:05AM +0200, Moritz Lenz wrote:
Larry Wall wrote:
I think it would be best if all boolean contexts collapse consistently,
and I would consider all of those to be boolean contexts. More
precisely, and || are boolean on the left
quantifier at offset 28, found '''
Is this feature unsupported at the moment or am I misunderstanding it?
It seems to be not yet supported, yes.
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
in
t/02-test-pm/1-basic.t to test unlike()).
So how should we proceed? Should I assemble a list of commonly used test
functions and remove all others both in the Test.pm's and the test files?
And then? Spec it? Or ship a prototype Test.pm as official?
Cheers,
Moritz
--
Moritz Lenz
http
it uses the case of the first letter
to distinguish type names from sub names. This is an evil hack that will
at some point be cleaned up.
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
The subject says it all: should !~~ with a regex on the RHS set $/?
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
).uniq', 'List.uniq not specced');
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
elements as needed or
perhaps in the background. But how do you create such a thing? Something
like:
@lazy_list := parallel-map { get_info($_) } @filenames;
@lazy_list = @filenames.map: { get_info($_) };
I suppose ;-)
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
it's done, I just want it to be
specced ;-)
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
--- Rule.pod.old 2008-09-08 17:27:42.0 +0200
+++ Rule.pod 2008-09-08 17:32:15.0 +0200
@@ -3586,8 +3586,6 @@
$parsetree = m:keepall/Perl.prog
correct, but rather
unintuitive.
So, what should $x be after these two statements?
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
= "006792";
google_color_text = "00";
//-->
What should 'my $str $x; $x ~= a' return?
Moritz Lenz
Re: What should 'my $str $x; $x ~= a' return?
Carl Mäsak
Re: What should 'my $str $x; $x ~= a' return?
TSa
Reply via email to
= "006792";
google_color_text = "00";
//-->
What should 'my $str $x; $x ~= a' return?
Moritz Lenz
Re: What should 'my $str $x; $x ~= a' return?
Carl Mäsak
Re: What should 'my $str $x; $x ~= a' return?
TSa
Reply via email to
that most methods in
immutable classes (like Str, List, Int) only return modified copies,
even if they mutate the string in Perl 5.
(There are some exceptions like Str.substr, which explicitly 'is rw',
and which implies that the object somehow has to gain access to its
container).
Moritz
--
Moritz
%) have the is
rw attribute.
This is mostly probably due to non-working constructors. Simple cases
seem to work, though:
12:29 moritz_ rakudo: class A { has $.b }; my A $x .= new(b = 3);
say $x.b
12:29 p6eval rakudo 31204: OUTPUT[3]
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http
of S29 needs some loving care...
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
Hi,
what should ''.split('') return? The empty list, or a list with one null
string?
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
Larry Wall wrote:
On Fri, Sep 19, 2008 at 05:58:59PM +0200, Moritz Lenz wrote:
: Hi,
:
: what should ''.split('') return? The empty list, or a list with one null
: string?
Empty list would make more sense as a degenerate case. In
'a'.split('')
we don't return the null
think of
1) A limit of 0 returns the empty list (you want zero items, you get them)
2) A limit of 0 fail()s
3) non-positive $limit arguments are rejected by the signature (Int
where { $_ 0 })
Any thoughts?
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
might return either True
(unconditional captures) or False (no captures at all) or True|False
(for my example above) ;-)
Cheers,
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
seems to argue that C:a should in
fact have an Int value.
Are the tests correct here, or am I reading too much into
the synopsis description?
Most likely the tests are wrong.
Moritz
--
Moritz Lenz
http://moritz.faui2k3.org/ | http://perl-6.de/
the solution is to avoid name conflicts in this case, maybe name
the methods like this:
Str.mirror
List.reverse
Hash.inverse (or Hash.flip)
(I've never been good with names, so there might be much better ones).
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/
, but it's rather incomplete and some parts are quite out of
date.
[1] some operators like ~~ actually have more macroish semantics
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/
, eager
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/
just extra documentation
+about what you expect.
I guess it's not intentional to use the same example twice?
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/
, but IMHO
we should have some way of reconstructing a match that is closer to the
original string than to the structure of the matching regex.
(I also don't know if that's feasible in terms of efficiency)
Any ideas?
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http
and run them.
If you want to run those individually, you can simply say
$ make t/spec/S02-literals/radix.t
Cheers,
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/
Ovid wrote:
--- On Mon, 20/10/08, Moritz Lenz [EMAIL PROTECTED] wrote:
Also, the way that t/00-parrot/06-op-inplace.t is
written forces the test numbers to be out of sequence. This
causes make test to fail, even though it's
merely a parse error. The Test.pm module appears to work
value.
For chmod() I could imagine an interface like this:
$file.chmod(:8540);
$file.chmod( :set, :user = :r :x, :group = :r)
# both same as 'chmod 540 $file'
$file.chmod( :modifiy, :other = :!x)
# same as 'chmod o-x $file'
Cheers,
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http
Larry Wall wrote:
On Fri, Nov 21, 2008 at 07:30:08PM +0100, Moritz Lenz wrote:
: For chmod() I could imagine an interface like this:
:
: $file.chmod(:8540);
: $file.chmod( :set, :user = :r :x, :group = :r)
:# both same as 'chmod 540 $file'
:
: $file.chmod( :modifiy, :other = :!x
need a
whitespace after the 'my', otherwise my(...) should be parsed as a
function call).
Cheers,
Moritz
--
Moritz Lenz
http://perlgeek.de/ | http://perl-6.de/ | http://sudokugarden.de/
Andy Colson wrote:
Moritz Lenz wrote:
Andy Colson wrote:
(Sorry if this dbl-posts, sent it from the wrong account the first time)
Hi all, what's wrong with this code:
use v6;
sub multireturn($x, $y)
{
my $a = $x * 2;
my $b = $y * 2;
return($a, $b);
}
my($a, $b
jerry gay wrote:
On Fri, Nov 21, 2008 at 10:43, via RT Moritz Lenz
[EMAIL PROTECTED] wrote:
# New Ticket Created by Moritz Lenz
# Please include the string: [perl #60732]
# in the subject line of all future correspondence about this issue.
# URL: http://rt.perl.org/rt3/Ticket/Display.html
Patrick R. Michaud wrote:
Currently Rakudo is treating [EMAIL PROTECTED] as though it's
prefix:^ on a List, which S03 says
If [prefix:^ is] applied to a list, it generates a
multidimensional set of subscripts.
for ^(3,3) { ... } #
Darren Duncan wrote:
Hello,
I'm wondering how to write anonymous value literals of some Perl 6 basic
types,
and I didn't see mention of this in synopsis 2.
Now, with some basic types, I know how to do it, examples:
Bool # Bool::True
Int # 42 or 0x17 or :12AB9
Jon Lang wrote:
Darren Duncan wrote:
Now, with some basic types, I know how to do it, examples:
Bool # Bool::True
Please forgive my ignorance; but are there any cases where
'Bool::True' can be spelled more concisely as 'True'?
There are; As long as the short name is unambiguous, it
Hello,
GW wrote:
I found something that could be problematic (haven't yet found out if it
should be a special case) in Synopsis 5. More precisely it is under the
chapter Accessing captured subrules in the test case
t/regex/from_perl6_rules/capture.t lines 67–71:
ok(eval(' bookkeeper ~~
Hi,
Stephen Weeks asked for clarification on #perl6 on how to implement $!,
I didn't find the answer for most the issues.
In particular:
* S04 states that .defined and .true mark the Exception object as
handled. But what do those methods return? alway true (since $! contains
undef anyway if
Dave Whipp wrote:
Carl Mäsak wrote:
Paul ():
I can't find anything in the existing synopses about Blobs.
Probably looking in the wrong place, sorry.
http://perlcabal.org/syn/S02.html#line_912
Re-reading that, a slightly tangent (though still on topic, I hope)
thought come to mind. The
From S29:
: =item end
:
: our Any method end (@array: ) is export
:
: Returns the final subscript of the first dimension; for a one-dimensional
: array this simply the index of the final element. For fixed dimensions
: this is the declared maximum subscript. For non-fixed dimensions
Uri Guttman wrote:
p == pugs-commits pugs-comm...@feather.perl6.nl writes:
p This document attempts to document the list of builtin functions in
Perl 6.
p It assumes familiarity with Perl 5 and prior synopses.
p @@ -870,6 +870,10 @@
p comparisons. C@by differs from C$by in
Moritz Lenz wrote:
From S29:
: =item end
:
: our Any method end (@array: ) is export
:
: Returns the final subscript of the first dimension; for a one-dimensional
: array this simply the index of the final element. For fixed dimensions
: this is the declared maximum subscript. For non
Larry Wall wrote:
On Thu, Dec 11, 2008 at 02:24:54PM +0100, TSa wrote:
HaloO,
Carl Mäsak wrote:
Pugs and Elf currently numify a Pair object to 2, and Rakudo currently
dies of despair.
My guess is that the semantics of Pugs and Elf falls out naturally
form a pair being treated as a list of
mark.a.big...@comcast.net wrote:
-- Original message --
From: Larry Wall la...@wall.org
On Thu, Dec 11, 2008 at 02:24:54PM +0100, TSa wrote:
My idea is to let a pair numify to whatever the value numifies to.
Same thing with stringification. In general I think
Uri Guttman wrote:
LW == Larry Wall la...@wall.org writes:
infix:cmp does numeric comparison if both operands are numbers, and
string comparison otherwise.
LW That is a bit of an oversimplification.
LW Any type may define infix:cmp however it likes for two arguments of
LW
TSa wrote:
HaloO,
Daniel Ruoso wrote:
That being said, we should note that this example looks simple because
we have almost no lazyness implied (since there's an assignment in the
first line), every list access requires the evaluation of the flatenning
of the list.
my @@a =
Jon Lang wrote:
That's a good point. Is there an easy way to distinguish between
passing a pair into a positional parameter vs. passing a value into a
named parameter?
Off the top of my head, see S06 for the gory details:
my $pair = a = 'b';
named(a = 'b');
named(:ab);
named(|$pair);
1 - 100 of 323 matches
Mail list logo