On 11/27/06, via RT Bob Wilkinson <[EMAIL PROTECTED]> wrote:
# New Ticket Created by Bob Wilkinson
# Please include the string: [perl #41000]
# in the subject line of all future correspondence about this issue.
# <URL: http://rt.perl.org/rt3/Ticket /Display.html?id=41000 >
My second 10 line parrot program didn't compile, so I looked at the
examples at http://www.parrotcode.org/examples/pasm.html, and pasted
the following into a file.
[EMAIL PROTECTED]:~/src/parrotcode$ cat ex1.pasm
new P0, .PerlInt
set P0, 123
new P1, .PerlInt
set P1, 321
add P1, P1, P0
print P1
print "\n"
end
[EMAIL PROTECTED] :~/src/parrotcode$ ../parrot-0.4.7/parrot ex1.pasm
error:imcc:syntax error, unexpected DOT
in file 'ex1.pasm' line 1
I am not sure how to proceed.
This example doesn't work anymore because PerlInt is no longer a
builtin PMC. The examples need to be updated. Replacing PerlInt with
Integer makes it work:
new P0, .Integer
set P0, 123
new P1, .Integer
set P1, 321
add P1, P1, P0
print P1
print "\n"
end
--
Matt Diephouse
http://matt.diephouse.com