Michal Wallace wrote:
And wouldn't you know it... A bug on the parrot
side cropped up out of nowhere to break them!
==17366== valgrind's libpthread.so: IGNORED call to: pthread_attr_destroy
==17366== Invalid read of size 4
==17366==at 0x43D5123E: Parrot_PyTuple_get_iter (in
On Thu, 4 Aug 2005, Leopold Toetsch wrote:
Michal Wallace wrote:
And wouldn't you know it... A bug on the parrot
side cropped up out of nowhere to break them!
==17366== valgrind's libpthread.so: IGNORED call to: pthread_attr_destroy
==17366== Invalid read of size 4
==17366==at
HaloO,
Luke Palmer wrote:
I vaguely recall that we went over this already, but I forgot the
conclusion if we did.
I have a proposal about block owner and block topic pending.
But I guess no one noticed it, ...
In Damian and Larry's talk here at OSCON, I saw the example:
if foo() -
I am glad to announce Pugs 6.2.9, released during Ingy's OSCON talk:
http://pugscode.org/dist/Perl6-Pugs-6.2.9.tar.gz
SIZE = 1439642
SHA1 = efd32419dcddba596044a42564936888a28b3c69
Following last month's plan, this release features a Perl6/PIL to javascript
code generator,
Michal Wallace wrote:
+PMC *iter = pmc_new_init(INTERP, PyBuiltin_PyIter, SELF);
Done - r8801
-if (!((List *) PMC_data(SELF))-length)
+if (!((List *) PMC_int_val(SELF)))
~
Bogus. Changed to !SELF.elements()
leo
# New Ticket Created by François PERRAD
# Please include the string: [perl #36808]
# in the subject line of all future correspondence about this issue.
# URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36808
This patch solves the following link problem :
pystring.o(.text+0x15a): In
HaloO,
Luke Palmer wrote:
On 8/3/05, Aankhen [EMAIL PROTECTED] wrote:
On 8/3/05, Piers Cawley [EMAIL PROTECTED] wrote:
So how *do* I pass an unflattened array to a function with a slurpy parameter?
Good question. I would have thought that one of the major gains from
turning arrays and
At 09:52 03/08/2005 -0700, you wrote:
[EMAIL PROTECTED] - Mi 03. Aug 2005, 00:40:59]:
With this small patch, gdbmhash works on MinGW.
Thanks,
the patch is applied, and thinks look OK under Linux as well.
Do you have an explaination why config/auto/gdbm.pl seems to see a gdbm
library. I
why do we have to give up a space when calling functions under Pugs?
A need to type open('file.txt') instead of open ('file.txt') makes
me perplexing (not perl-flexing ;-) Our recent discussions in 'zip with()'
gave no answer.
Not sure whether it's enough of an answer, but see:
On 8/4/05, Luke Palmer [EMAIL PROTECTED] wrote:
How can that possibly work? If a bare closure { } is equivalent to -
?$_ is rw { }, then the normal:
if foo() {...}
Turns into:
if foo() - ?$_ is rw { }
And every if topicalizes! I'm sure we don't want that.
Luke
Here's
Will Coleda (via RT) wrote:
causes a segfault in the substr opcode (from tcl's lib/tclconst.pir),
and forces a few tcl-unicode escape tests into TODOs.
A short PIR test that is equivalent:
.sub main @MAIN
$S0 = \\u666
$I0 = 0x666
$S1 = chr $I0 # works, but substr doesn't
HaloO,
Luke Palmer wrote:
On 8/1/05, Ingo Blechschmidt [EMAIL PROTECTED] wrote:
In general, (@foo, @bar) returns a new list with the element joined,
i.e. @foo.concat(@bar). If you want to create a list with two sublists,
you've to use ([EMAIL PROTECTED], [EMAIL PROTECTED]) or ([EMAIL
why do we have to give up a space when calling functions under Pugs?
Not sure whether it's enough of an answer, but see:
http://dev.perl.org/perl6/doc/design/syn/S04.html#Statement_parsing
it says:
if $term ($x) # syntax error (two terms in a row)
if this cause an error, why not
why do we have to give up a space when calling functions under Pugs?
Not sure whether it's enough of an answer, but see:
http://dev.perl.org/perl6/doc/design/syn/S04.html#Statement_parsing
it says:
if $term ($x) # syntax error (two terms in a row)
if this cause an error,
HaloO,
Piers Cawley wrote:
By the way, if flattening that way, what's the prototype for zip? We can after
all do:
zip @ary1, @ary2, @ary3, ... @aryn
How about
sub zip( List [EMAIL PROTECTED] ) {...}
a slurpy List of Array of List. The return value is a
not yet iterated Code object
On Thu, Aug 04, 2005 at 10:55:12AM +0400, Andrew Shitov wrote:
why do we have to give up a space when calling functions under Pugs?
A need to type open('file.txt') instead of open ('file.txt') makes
me perplexing (not perl-flexing ;-) Our recent discussions in 'zip with()'
gave no answer.
Thus spake Autrijus:
This is so:
print (1+2)*3;
can print 9, instead of 3.
Just a newbie question: what would
print (1+2)x3;
print (or do)? And is
print .(1+2)*3
allowed?
brano tichý
I've just realised I quoted the wrong doc earlier, I meant to link to:
http://dev.perl.org/perl6/doc/design/syn/S12.html#Methods
.doit ()# ILLEGAL (two terms in a row)
.doit .() # okay, no arguments, same as .doit()
I had wrongly thought this also applied to subroutine calls, and
Hello,
This time, I made as swift as possible :)
Windows users, save time compiling Pugs 6.2.9 and Parrot 0.2.2,
download PXPerl today!
http://pixigreg.com/?pxperl
See you soon,
Grégoire
--
www.pixigreg.com
[EMAIL PROTECTED]
François PERRAD (via RT) [EMAIL PROTECTED] wrote:
This patch solves the following link problem :
pystring.o(.text+0x15a): In function `Parrot_PyString_get_repr':
trunk/dynclasses/pystring.pmc:307: undefined reference to
`Parrot_binary_charset_ptr'
collect2: ld returned 1 exit status
partial
HaloO,
in case someone might be interested, here is my more or less complete
idea of the Perl 6 type lattice as ASCII art.
Enjoy. Comments welcome.
::Any
...| ...
I'm about to commit an updated version of leo's Z-code-to-PIR
translator. I'm wondering what I should do about t.
I have a test script that runs 85 tests (and will run many more once I
write more opcodes. Luckily, I developed it already when I was doing
plotz). I could easily modify it to output
On Thu, 4 Aug 2005 20:21:18 +0800, Autrijus Tang [EMAIL PROTECTED]
wrote:
On Thu, Aug 04, 2005 at 10:55:12AM +0400, Andrew Shitov wrote:
why do we have to give up a space when calling functions under Pugs?
A need to type open('file.txt') instead of open ('file.txt') makes
me perplexing
# New Ticket Created by Lambeck
# Please include the string: [perl #36812]
# in the subject line of all future correspondence about this issue.
# URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36812
For the last 2 hours I tried to compile Pugs-2.6.9 against Parrot-0.2.2.
It does not
Is there a way to declare an array of, say, 300 strings in PIR other than
arr = 300
arr[0] = hi
arr[1] = there
arr[2] = my
...
arr[298] = very
arr[299] = tired
Same question with a hash of hashes or whatever.
-Amir
print (1+2)*3;
can print 9, instead of 3.
I'd prefer always have '3' (as a result of sum 1 + 2) here.
A C-programmer would tread this like
(print (1 + 2) * 3); # prints int, then returns void
print (or do)? And is
print .(1+2)*3
allowed?
in fact, that is exactly
On Mon, Aug 01, 2005 at 01:13:52PM +0200, TSa (Thomas Sandlaß) wrote:
: BTW, you didn't mean originally:
:
: say zip (@odd), (@even); # prints 13572468 or 12345678?
That doesn't work, since () in list context does not enforce scalar context.
It's exactly equivalent to
say zip @odd, @even;
Excellent questions. Perhaps I can whip up a languages.pod once 0.2.3
is out the door, based on partcl and the current state of a few other
languages out there.
Right now, the unified language testing harness, such as it is,
would rather you had a script called harness that took a --files
On Aug 4, 2005, at 16:17, Lambeck (via RT) wrote:
# New Ticket Created by Lambeck
# Please include the string: [perl #36812]
# in the subject line of all future correspondence about this issue.
# URL: https://rt.perl.org/rt3/Ticket/Display.html?id=36812
For the last 2 hours I tried to
Amir Karger schrieb:
I have a test script that runs 85 tests (and will run many more once I
write more opcodes. Luckily, I developed it already when I was doing
plotz). I could easily modify it to output ok n and not ok with a
comment about what went wrong. However, because it's a big Z-code
Amir Karger schrieb:
Is there a way to declare an array of, say, 300 strings in PIR other than
arr = 300
arr[0] = hi
arr[1] = there
arr[2] = my
...
arr[298] = very
arr[299] = tired
Same question with a hash of hashes or whatever.
Assigning an integer to the array should do the trick.
On Aug 4, 2005, at 14:59, Amir Karger wrote:
Is there a way to declare an array of, say, 300 strings in PIR other
than
arr = 300
arr[0] = hi
arr[1] = there
arr[2] = my
...
arr[298] = very
arr[299] = tired
Read the array entries from a text file?
-Amir
leo
Hi,
my $pair = (a = 1);
say $pair[0]; # a?
say $pair[1]; # 1?
I've found this in the Pugs testsuite -- is it legal?
--Ingo
--
Linux, the choice of a GNU | Black holes result when God divides the
generation on a dual AMD | universe by zero.
Athlon!|
say $pair[0]; # a?
It looks like $pair is an arrayref while 'say ref $pair' tells 'Pair'.
And may I ask a relating question:
my $pair = ('name' = 'age');
say $pair{'name'}; # prints 'age'
say $pair['name']; # why prints 'name'? == question
say $pair['age']; # prints 'name'
--
Hi,
(found in the Pugs testsuite.)
my $undef = undef;
say $undef.chars? # 0? undef? die?
say chars $undef; # 0? undef? die?
I'd opt for undef.chars to be an error (no such method) and chars
undef to return 0 (with a warning printed to STDERR^W$*ERR).
Opinions?
--Ingo
--
Hi,
Andrew Shitov wrote:
say $pair[0]; # a?
It looks like $pair is an arrayref while 'say ref $pair' tells 'Pair'.
right, this is why I asked, IMHO it's bogus.
And may I ask a relating question:
my $pair = ('name' = 'age');
say $pair{'name'}; # prints 'age'
say $pair['name']; #
On 8/4/05, Ingo Blechschmidt [EMAIL PROTECTED] wrote:
Hi,
my $pair = (a = 1);
say $pair[0]; # a?
say $pair[1]; # 1?
I've found this in the Pugs testsuite -- is it legal?
Nope. That's:
say $pair.key;
say $pair.value;
Also:
say $paira; # 1
say
On Aug 4, 2005, at 22:20, Leopold Toetsch wrote:
On Aug 4, 2005, at 14:59, Amir Karger wrote:
Is there a way to declare an array of, say, 300 strings in PIR other
than
Read the array entries from a text file?
The more, that it looks like that you are dealing with the string
On 8/4/05, Ingo Blechschmidt [EMAIL PROTECTED] wrote:
Hi,
(found in the Pugs testsuite.)
my $undef = undef;
say $undef.chars? # 0? undef? die?
say chars $undef; # 0? undef? die?
I'd opt for undef.chars to be an error (no such method) and chars
undef to return 0 (with a
Hi,
Luke Palmer wrote:
On 8/4/05, Ingo Blechschmidt [EMAIL PROTECTED] wrote:
my $pair = (a = 1);
say $pair[0]; # a?
say $pair[1]; # 1?
I've found this in the Pugs testsuite -- is it legal?
Nope. That's:
say $pair.key;
say $pair.value;
Also:
say
I'm writing a new module that optimizes sets of conditions into
decision trees. Initially I allowed the user to specify conditions as
strings, and if that condition began with a !, it would be the
inverse of the condition without the !.
But then I thought, the user will more than likely have
Luke Palmer [EMAIL PROTECTED] wrote:
On 8/4/05, Ingo Blechschmidt [EMAIL PROTECTED] wrote:
my $undef = undef;
say $undef.chars? # 0? undef? die?
say chars $undef; # 0? undef? die?
I'd opt for undef.chars to be an error (no such method) and chars
undef to return 0 (with
42 matches
Mail list logo