TSa (Thomas Sandlaß) thomas-at-sandlass.de |Perl 6| wrote:
I think a straight forward approach is to overload the
assignment operator on the actual types of the lhs and
rhs. The dispatch target than clones the value to be stored
in the lhs container after being checked against the
container's con
FastStone Capture
http://portabler.blogspot.com/2008/09/faststone-capture.html
CloneDVD
http://portabler.blogspot.com/search/label/CloneDVD%202
Other Software Collection
- CloneDVD mobile (1)
- http://portabler.blogspot.com/search/label/CloneDVD%20mobile
- Corel Draw 11 Portable (1)
-
http:/
On Sun, Sep 14, 2008 at 01:59:22PM -0700, Michael G Schwern wrote:
> Eric Wilhelm asked me to chime in here.
>
> is_deeply() is about checking that two structures contain the same values.
> This is different from checking that they're the same *things*, that they are
> in fact the same object or r
Eric Wilhelm asked me to chime in here.
is_deeply() is about checking that two structures contain the same values.
This is different from checking that they're the same *things*, that they are
in fact the same object or reference.
You need both.
Reading eqv() it seems that yes, it is doing like
On Sunday, 14. September 2008 16:08:19 Patrick R. Michaud wrote:
> So, how does one get an object to pretend to be a value type for
> purposes of assignment?
I think a straight forward approach is to overload the
assignment operator on the actual types of the lhs and
rhs. The dispatch target than
# from Carl Mäsak
# on Sunday 14 September 2008 07:18:
>die "Unrecognized directive: TMPL_$directive"
> if $directive ne 'VAR' | 'LOOP' | 'IF';
>
>One is tempted to assume that this means the same as
>"$directive ne 'VAR' || $directive ne 'LOOP' || $directive ne 'IF'",
>but it doesn't.
Actual
Well, the subject line already contains my question. I wrote some tests
about scalar autovivification. The short sequence:
my Str $x;
$x ~= 'a';
produces 'Stra' in pugs, because $x contains a Str proto object, that
stringifies to the type name.
>From my understanding of the synopsis that's correc
Given that we have
say +'12';# 12
say +'0b1100';# 12
say +'0x0c'; # 12
what should the following produce?
say +':2<1a>';# 0? Failure? 12?
Pm
On Sun, Sep 14, 2008 at 04:18:44PM +0200, Carl Mäsak wrote:
> Conrad (>):
> > Is there something more up-to-date concerning "Perl 6 best practices" that
> > are presently-recommended (by p6l or @Larry) than the following item on the
> > Perl 6 wiki?
> [...]
> That said, I do have one Perl 6-specifi
Conrad (>):
> Is there something more up-to-date concerning "Perl 6 best practices" that
> are presently-recommended (by p6l or @Larry) than the following item on the
> Perl 6 wiki?
If you ask me, "best practices" evolve as a countering force to enough
people using less-than-ideal practices to cre
On Sun, Sep 14, 2008 at 09:08:19AM -0500, Patrick R. Michaud wrote:
> In [1], Larry writes:
Oops, I forgot the reference:
1. http://groups.google.com/group/perl.perl6.language/msg/3f8efc31e4830f42
Pm
In [1], Larry writes:
> [...] we left = in the language
> to provide (to the extent possible) the same semantics that it
> does in Perl 5. And when it comes to non-value types, there really
> are still references, even if we try not to talk about them much.
> So I think assignment is basically ab
On Sun, Sep 14, 2008 at 03:08:57PM +0200, Carl Mäsak wrote:
> Recently, in November, we've had reason to clone the Rakudo Test.pm
> and add an implementation (viklund++) of is_deeply, for testing
> whether two arrays, pairs or hashes are deeply -- recursively --
> equivalent. The method does what y
Recently, in November, we've had reason to clone the Rakudo Test.pm
and add an implementation (viklund++) of is_deeply, for testing
whether two arrays, pairs or hashes are deeply -- recursively --
equivalent. The method does what you'd think it does, checks the types
of its parameters and recurses
14 matches
Mail list logo