an a yes-or-no answer about the existence
of a method.
--
Adriano
On 11/8/05, David Landgren <[EMAIL PROTECTED]> wrote:
> >> Adam Kennedy wrote:
> >>> Doesn't makemaker only like you if you have a single .pm file just in
> >>> the root directory?
> >>> And otherwise you have to have your lib files actually under lib?
> The trouble is... I *like* having the file
On 6/26/06, Watson Ladd <[EMAIL PROTECTED]> wrote:
Can we format this a bit better?
It is nicely formatted if you see with fixed-width fonts. And the link
http://rt.perl.org/rt3/NoAuth/parrot/Overview.html
takes to the HTML page from which this ASCII report was extracted.
What is supposed to happen if one says:
class Dog {
has $:tail handles 'wag';
meth wag { # something else than $:tail.wag
}
}
Is it a compilation error? Or one of the definitions prevail (with a
warning or something)?
Adriano Ferreira.
earch: /usr/lib/perl5/site_perl/5.8/cygwin
installsitelib: /usr/lib/perl5/site_perl/5.8
Adriano.
o what
Prolog does.
tr_rule some_trans( $obj ~~ [ $a ~~ Hash, $b ~~ { 'k' => $vk } ] ) {
[ { 'y' => $vk, $a } ]
}
The rules must know how to walk each kind of structure: array, hash,
object, whatever and build new ones.
My 0.0002 cents.
Adriano Ferreira.
On
uot;. It would be easy for object
compilers to provide a sub implementation. But on the other hand it
could also be easy for subroutine compilers to provide an object
implementation with the help of a wrapper object (with not very useful
methods besides 'compile').
My $0.02 cents.
Adriano Ferreira.
On 11/23/06, TSa <[EMAIL PROTECTED]> wrote:
HaloO,
Darren Duncan wrote:
> And if Seq and Set etc are interchangeable for all situations where it
> doesn't matter whether the elements are ordered or not, then a lot of
> times users won't have to care which they have.
One can argue that we have t
ving duplicate values in _self_.
a = [ "a", "a", "b", "b", "c" ]
a.uniq #=> ["a", "b", "c"]
A naïve Perl 5 implementation could be:
sub uniq {
my (@u, %h);
for (@_) {
push(@u, $_) unless $h{$_};
$h{$_}++;
}
return @u;
}
Adriano.
The former implementation can be shortened:
sub uniq {
my %h;
return grep { ! $h{$_}++ } @_;
}
But realize that none of the proposed solutions (which are based on
hashes for computing the return) is amenable to the extension Ingo
called for with comparator blocks.
Adriano.
nvert list to a set, (2) convert back to a list.
If that's the intention, maybe we're better using only hashes or any
set-like implementation. There is also the variant of eliminating
duplicates in-place or constructing a new list.
Adriano.
w).slurp()
Not so short, but at least it is there.
Regards,
Adriano.
enting delegation. Am I right?
Regards,
Adriano.
Larry said:
> So I guess I agree that .tailcall is probably just a bad synonym for "return".
But is there any other case where we need an explicit tail call with "goto"?
And about a way to curry a method with its receiver to a sub, is there
a shorthand?
Thanks,
Adriano.
rove --shuffle --seed=808208 t # shuffle is initiated with given seed value
prove --shuffle --list=5,4,0,1,2,3 t # the shuffle list is predetermined
I am sending it for your appreciation. I am still writing a test for
--shuffle and the added options --seed and --list.
Regards,
Adriano.
prove-patch
Description: Binary data
I have forgotten to say that the patch is over the source code of
"bin/prove" in "Test-Harness-2.53_01.tar.gz".
Adriano.
(Instead of "int rand(2**$Config{randbits})" I used the arbitrary "int
rand(1E8)". Yours is a more clever and portable expression.)
Best regards,
Adriano.
On 7/26/05, Michael G Schwern <[EMAIL PROTECTED]> wrote:
> Yeah, that's exactly what I was worried about. Why not just write:
> prove -b -D -d 1 2 0 3 4
> this even avoids having to write special code to handle Andy's worry about
> large lists of arguments.
I see your point and agree. Pro
Here is another patch. No --list anymore. Just --seed. There is also a
new test script "t/prove-shuffle.t". It touches the MANIFEST and
tweaks "t/prove-globbing.t" which depends on distribution files
matching "t/prove*.t".
Adriano.
prove-patch
Description: Binary data
rray in
foobar @some_array;
That is how I undestood that. Can someone confirm this belief?
Adriano.
equivalent to creating empty files (like Mike Graham suggested),
only with better diagnostics. It still does not solve the problem with
specific versions (which does not seem to be a problem for your
immediate use case).
Well, but from the point of supporting for < 5.6.1, it does not help
at all. Code refs in @INC will not work.
Regards,
Adriano.
earch found for you)
# make
# make install
Regards,
Adriano.
> blib/lib/libparrot.a(bigint.o): In function `bigint_get_long':
> /home/coke/research/parrot/classes/bigint.c:83: undefined reference to
> `mpz_fits_slong_p'
an addition to the probing files.
The attached patch does only the later. In config/auto/gmp/gmp.in the
problematic function is used and its answer reaches STDOUT too. Then
config/auto/gmp.pl tests for the extended expected output.
Regards,
Adriano.
--- config/auto/gmp.pl
+++ config/auto/gmp.pl
@@
> Shouldn't these be just methods?
I guess not. This is Perl and OO is not mandatory, or even desirable
all the time.
Adriano.
rticle are here:
http://ferreira.nfshost.com/perl6/intro.html
http://ferreira.nfshost.com/perl6/zip.html
(Yes. That has been published also in use.perl and PerlMonks. But I am
assuming I did not reach anybody that could help me out yet.)
Kind regards,
Adriano Ferreira
On 9/17/07, Joe Gottman <[EMAIL PROTECTED]> wrote:
> Adriano Ferreira wrote:
> > Jesse Vincent has announced the acceptance of my microgrant proposal
> > (http://use.perl.org/~jesse/journal/34451). It is a plain simple
> > idea, whose effects are yet to be seen.
On 9/18/07, Agent Zhang <[EMAIL PROTECTED]> wrote:
> On 9/18/07, Adriano Ferreira <[EMAIL PROTECTED]> wrote:
> >
> > Join me. The drafts of the introduction and the first article are here:
> >
> > http://ferreira.nfshost.com/perl6/intro.html
> > http://
On 9/18/07, brian d foy <[EMAIL PROTECTED]> wrote:
> In article <[EMAIL PROTECTED]>, Alberto Simões
> <[EMAIL PROTECTED]> wrote:
>
>
> > Adriano Ferreira wrote:
> > > The plan is to write a series of blog entries discussing a Perl 6
> > >
On 9/18/07, Paul Hodges <[EMAIL PROTECTED]> wrote:
>
> --- Adriano Ferreira <[EMAIL PROTECTED]> wrote:
> [[snips here and at end]]
> > > . . . I have one suggestion: you might want to mention
> > > the roundrobin function in the article on the zip functi
On 9/19/07, Moritz Lenz <[EMAIL PROTECTED]> wrote:
> Adriano Ferreira wrote:
> > http://ferreira.nfshost.com/perl6/stitching6.html
>
> A grammatical nit: "The infix operator '~' keeps the same precedence of
> '+' in Perl 6."
> I think that s
On 9/18/07, Joe Gottman <[EMAIL PROTECTED]> wrote:
> Adriano Ferreira wrote:
> > I salute every bit of help. I am trying to organize the production and
> > will hopefully provide more details soon. By now, I think that I can
> > handle suggestions and corrections to th
h
> return $ruler; # and returns the string
> }
> my $r = page_ruler(25); # 0123456789012345678901234
I think small examples are a good idea. The problem is to have much
simpler ways to do some things, like
[~] map { $_ % 10 }, 0 ..^ $len
Obviously, this is fa
On 9/18/07, David Vergin <[EMAIL PROTECTED]> wrote:
> > On 9/18/07, Paul Hodges <[EMAIL PROTECTED]> wrote:
> >>
> >> For the Gearheads
> >> We won't bore you with excess details,
> >> but for more info... c.f. ...
> >
I just posted a report on this first week of the series of
micro-articles on Perl 6 operators. Read it at use.perl:
http://use.perl.org/~ferreira/journal/
Thank you all for the help so far.
Adriano.
t to how they are used in other
expressions of the language).
It is all there somewhere in Section "Literals" of Synopsis 02
(http://perlcabal.org/syn/S02.html#Literals). More specifically, look
for the item that starts with "In addition to q and qq, there is now
the base form Q&
ot the case for the X operator
X : Seq(D1) x Seq(D2) -> Seq( D1 x D2 )
At the other hand, any sequence with one only member would define a
result @a x ($any) that would be kind of isomorphically equivalent to
@a itself. But, apart from that, I don't get the value of defining
such a
On Sat, May 3, 2008 at 4:00 PM, John M. Dlugosz
<[EMAIL PROTECTED]> wrote:
> I've searched the archives, but did not see a good explanation of what eqv
> does, and what is meant by snapshotting in the description of the synopses.
>
> Can anyone explain it (with examples?) or point to an existing
code for our own amusement. We
were a tiny startup, programming as hard as we could in order to
put technical barriers between us and our competitors.
What do you think? I have very little Lisp experience...
Thanks,
--
Adriano
> This kind of thing should reveal itself in the next Apocalypse. Then
> we can see Larry's "vision," and make appropriate adjustments in terms
> of that. Right now, it's very fuzzy.
Nice, I'm looking forward to reading it.
> Oh, and you aren't being inconvenient. These kinds of questions are
> what the list is for: ask away!
Thanks!
Best regards,
--
Adriano
thing here refers to this.
In my opinion, MMD main features are runtime dispatch decision and (to a
dynamic language) seamless extension by adding new patterns.
Regards,
Adriano.
--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Isn't 'pirate' the name of the Lua compiler for Parrot (by Klaas-Jan Stol)?
On Wed, 6 Aug 2003 21:38:25 -0400 (EDT), Michal Wallace <[EMAIL PROTECTED]>
wrote:
--
Adriano
cvs server: internal error: unsupported substitution string -kCOPY
Should I upgrade my CVS client or is there something wrong with these
files?
(Currently using WinCVS 1.3.13.1, cvs 1-10.)
Adriano.
--
Adriano R. Ferreira
Oasis Comunicacao e Tecnologia Ltda.
42 matches
Mail list logo