On Feb 10, 4:38 pm, dam...@conway.org (Damian Conway) wrote:
I sincerely hope that the future community of designers of Perl 6 's
documentation format will find a way to honour and support the very
different needs of *all* the creators and users of Perl, not just the
needs of the most
I notice that CKeyWeight returns False and deletes the key for a key
whose value goes to zero or less than zero, issuing a warning in the
latter case. Is it the case that CFatRat always evaluates to False
in Boolean context when negative?
This last SOTO re-reminded me of what an inveterate fan I am of Perl 6. Wow.
My question today is about concurrency. I can imagine how things like IPC
Mailboxes (e.g. RFC 86) happen in modules. I can also imagine why Threads
(e.g. RFC 1) should be in modules- given the obvious dependence on
Inadvertently replied to this off-list...
Moritz wrote:
There's no need for any keyword to be in STD.pm. STD.pm just defines
the grammar. Syntactically fork will be like just another sub, so it can
safely be handled in the compiler's runtime.
* Where will Cfork, Cwait, and possible friends
Is this what you're looking for?
class MattTest {
has Str $.string;
submethod BUILD (:$string) { ## submethod BUILD is the constructor
## :$string is a named argument
string
say passed $string;
}
}
my $test =
I think so (after fixing a couple of minor typos).
Does this mean that you can only pass defined attributes to a constructor ?
What if you want to pass parameters that are used during build but don't
actually need to be stored in the object ?
Hopefully you don't mind my cc'ing the list- that
Hopefully the following will help. If I've missed the thrust of your
questions, feel free to disregard while someone else improves on my
answer :) I only overloaded the infix:+ operator, but it should give
you an idea.
I would write the class comme ça:
use v6-alpha;
class Register {
has
Haha, that will teach me for trying to golf on public mailing lists.
It should actually read:
sub int2vec ($n) {
+(sprintf(%b,$n).split('')); # now I'm just golfing :-D
}
unless you only ever want to use it with the number 7.
-db.
- Original Message
From: David
From an IRC conversation earlier today:
A quick scan of S05 reveals definitions for these seven special named
assertions:
before pattern
after pattern
sp
ws
null
'...'
at($pos)
Twenty-four more are listed in docs/Perl6/Overview/Rule.pod (some of which are
used in S05, but I don't
Aaron Sherman wrote:
replies snipped /
Is the goal to avoid namespace pollution? If so, shouldn't there be a
truly metaish way of getting at the internal namespace so that someone
doesn't accidentally render an object unusable by defining the wrong
method name (which you can prevent with an
Hi all,
There is currently a mismatch between S12 and Pugs. The former specifies
$obj.META, the latter has implemented $obj.meta.
Is there any reason I shouldn't change the tests from meta to META, make the
corresponding changes in Pugs.Prim, and then fix any other examples or modules
it
11 matches
Mail list logo