because it refers me to non-existent files. Anyone know
about about this area and can fix up a few things so people can dive back into
writing compilers?
Cheers,
Ovid
--
Buy the book - http://www.oreilly..com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal
installable_xyz
strip: can't open file: installable_xyz (No such file or directory)
Cheers,
Ovid
--
Buy the book - http://www.oreilly..com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http
- Original Message
From: Ovid publiustemp-perl6interna...@yahoo.com
This patch implements the .trim() method for strings.
Now that I'm reading S29, I see there is no .trim() method there. I got that
because it was referenced in pugs in the cookbook (not in tests, though
- Original Message
From: jesse je...@fsck.com
On Mon, Jan 12, 2009 at 07:01:25AM -0800, Ovid wrote:
I could optionally make the following work:
$string.trim(:leading0);
$string.trim(:trailing0);
Alternatively, those could be ltrim() and rtrim().
'left
- Original Message
From: Larry Wall la...@wall.org
On Mon, Jan 12, 2009 at 05:04:50AM -0800, Ovid wrote:
: ...the trivial $string.trim and trim($string) case.
Hmm, I'd think .trim should work like .chomp, and return the trimmed
string without changing the original. You'd use
,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
it, though. You'd have to figure out which methods to call. Or all could be
allowed and $string.trim(:leading0) could all $string.rtrim internally.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter
and now has tests.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
trim.patch
Description: Binary data
wanted to take that lead...
How about .trim(:start) and .trim(:end)?
So if:
1. No params, trim all
2. :start or :end, only trim that bit (not a negated option :)
3. If both, goto 1
Sound good?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog
of how one *would* properly override
trim's concept of whitespace
Change your locale to one with a different concept of whitespace (are there
any?)
Otherwise, would this be trying to stuff too much into one function?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog
, there are no tests because I couldn't find any pugs tests for this :(
What's the appropriate procedure for this? However, all tests pass and a small
test program passed (including calling trim() as a function).
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks
pugs tests for this :(
What's the appropriate procedure for this?
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http
:(
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
that. It comes from my 'rebuild' script and that's just
finger memory on my part.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http
error
make[1]: *** Deleting file `PGE.pbc'
make: *** [compilers.dummy] Error 2
$ uname -a
Darwin curtis-poes-computer-2.local 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep
3 11:29:43 PDT 2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com
***
This is Parrot 0.8.0.
$ uname -a
Linux critix 2.6.8-2-686-smp #1 SMP Tue Aug 16 12:08:30 UTC 2005 i686
GNU/Linux
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
interested).
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
, of course, this isn't supposed to be implemented yet, but that seems
strange since it's in the basic tests.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official
It would help if I sent this to the correct mailing list. Oops.
Cheers,
Ovid
--- On Mon, 20/10/08, Ovid [EMAIL PROTECTED] wrote:
I've been doing some work integrating Perl 6 into vim
and now I'm trying to figure out how to run individual
Perl 6 tests. It appears that the incantation
correct. Bummer.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
want to
play with Rakudo will see a test failure if they run 'make test' as the README
instructs.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl
not notice the tests failing, but that's because make test seems to
run the harness 3 times and the failing test is in the first run. If you don't
notice this, you won't notice these tests failing.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http
.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http://use.perl.org/~Ovid/journal/
Twitter - http://twitter.com/OvidPerl
Official Perl 6 Wiki - http://www.perlfoundation.org/perl6
--- Ovid [EMAIL PROTECTED] wrote:
I tried again, and 'make perl6' succeeded at r27371.
The plot thickens!
w00t! I'll try this when I get home tonight. This is great news.
Nope. 'make test' and 'make perl6' both return the following:
../../parrot -o perl6.pbc perl6.pir
src
Forget everything I wrote. I missed a couple of files in my cleaning.
I got rid of them, did a 'make clean make perl6' and now everything
is just dandy.
Thanks for the help.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog- http
;P6metaclass;register' pc 411
(runtime/parrot/library/P6object.pir:295)
called from Sub 'parrot;Str;onload' pc 859 (src/gen_builtins.pir:584)
called from Sub 'parrot;Perl6::Compiler;main' pc -1 ((unknown
file):-1)
I get the same error even if I do ../../parrot perl6.pbc hello.pl.
Cheers,
Ovid
--
Buy
breaks from email from time to time).
Cheers,
Ovid
Null PMC access in type()
current instr.: 'fact' pc 334 (EVAL_15:127)
called from Sub '_block11' pc 34 (EVAL_15:17)
called from Sub 'parrot;PCT::HLLCompiler;eval' pc 806
(src/PCT/HLLCompiler.pir:481)
called from Sub 'parrot;PCT::HLLCompiler
an older version of Test::Harness. If you
upgrade, it will break things down further, including telling you which
test in which test program unexpectedly succeeded.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Personal blog - http://publius-ovidius.livejournal.com/
Tech
: directory
Schedule: normal
Last Changed Author: jonathan
Last Changed Rev: 28555
Last Changed Date: 2008-06-19 19:43:36 +0100 (Thu, 19 Jun 2008)
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks/
Personal blog - http://publius-ovidius.livejournal.com/
Tech blog - http
--- Jonathan Worthington [EMAIL PROTECTED] wrote:
Hi,
Ovid wrote:
http://rt.perl.org/rt3/Ticket/Display.html?id=56108
This is related to Rakudo starting to use dynops (dynamic op
libraries)
today. I managed to mess up the makefile by forgetting to stick in
the
cleaning stuff
there)/
# '
# './parrot /Users/ovid/code/parrot/t/dynoplibs/myops_3.pir' failed
with exit code [SIGNAL 6]
not ok 4 - a short cheating quine
# Failed test 'a short cheating quine'
# at t/dynoplibs/myops.t line 76.
# Exited with error code: [SIGNAL 6]
# Received:
# src/interpreter.c:1030: failed
state that default_forbidden words is a
method, not a function. It was called as a function, but I changed it
to a class method call to ensure that if it really is required to be a
method in the future, things don't break.
Cheers,
Ovid
--
Buy the book - http://www.oreilly.com/catalog/perlhks
is in
$S0? My pir is below. Is this actually correct and all will become
clear later?
Cheers,
Ovid
.namespace
.sub _block10
push_eh catch_11
get_global $P15, _block12
newclosure $P15, $P15
$P14 = $P15()
pop_eh
goto catch_11_end
catch_11:
get_global $P19, _block16
:268)
called from Sub 'main' pc 126 (pbc_to_c.pir:29)
make: *** [pbc_to_c] Error 1
(More detailed error message below).
Cheers,
Ovid
parrot $ make pbc_to_c
perl tools/dev/pbc_to_c_gen.pl \
'./CFLAGS cc -I./include -g -pipe -fno-common -no-cpp-precomp
-I/usr/local/include -pipe -fno
--- Ovid [EMAIL PROTECTED] wrote:
On a related note, I received this error message:
Ack, some files were missing! I can't continue running
without everything here. Please try to find the above
files and then try running Configure again.
Configure.pl kept running yet the message
can do, please let me know.
Cheers,
Ovid
t/postconfigure/01-options...ok
t/postconfigure/02-data_slurpok
t/postconfigure/03-revision_no_DEVELOPINGok
t/postconfigure/04-revision..ok
t/postconfigure/05-trace
the same error. I did a 'make realclean', rebuilt, and then manually
edited the Makefile to get rid of just one of those and it still failed
with the same error. I don't know Makefiles very well, so I suppose my
cargo-culting around didn't help.
Cheers,
Ovid
--
Buy the book - http
37 matches
Mail list logo