Hi, it's me again with my questions on pasm...

I just downloaded the latest version of Parrot (it's currently 17:00 GMT).
$ ./parrot -v
[...]
This is parrot version 0.0.7-devel built for i386-linux
[...]
$ cat test.pasm
new P0, .PerlArray
set P0[10], "foo"
set I0, P0.length
print I0
print "\n"
$ perl ../parrot/assemble.pl test.pasm > test.pbc
Couldn't parse argument '.length' at line 3.
$ ../parrot/parrot test.pbc
11

So, PerlArray seems to implement the length method, but issues a warning...


I don't know:
1. wether it's a bug or not, and if I should report it to 
[EMAIL PROTECTED] (btw, why can't we report bugs via the web interface?)
2. if I look in .../parrot/classes/perlarray.h, I can't find any function 
that seems to implement the length method. Is there a universal length 
function, or am I right to look in the perlarray.h file? If not, then how the 
hell does parrot spit me the right answer in the above snippet?


Sorry for those (maybe silly) questions, but I'm still learning to play with 
this new toy... :)


Jerome
-- 
[EMAIL PROTECTED]

Reply via email to