On Apr 15, 2007, at 11:36 AM, Andrew Shitov wrote:

Hi perlers,


< SNIP of Pugs stuff>


OK, trying to use parrot for executing PIR-code:

   parrot test.pir

Plenty of errors this time:

    error:imcc:syntax error, unexpected DOT
        in file 'h.pir' line 7
    error:imcc:syntax error, unexpected DOT
        in file 'h.pir' line 180
    error:imcc:syntax error, unexpected DOT
        in file 'h.pir' line 194
    . . .

All these 'unexpected DOT' messages correspond to staments in PIR- source with
'new' instruction such as

   $P8 = new .PerlArray


Would anyone tell me how to deal and live with it? :-)

All of the Perl* PMC types were changed into dynamically loaded PMCs - they're not available at runtime without jumping through some hoops. (These were designed for a more perl5-ian set of requirements, and weren't going to be used by the perl6-on-parrot effort.);

Most of the Perl types have builtin parrot analogues, however:

PerlArray -> ResizablePMCArray
PerlHash -> Hash
PerlString -> String
PerlInt -> Integer
PerlNum -> Float
PerlUndef -> Undef
PerlEnv -> Env

PerlScalar is kind of a base class for the string/int/num types, I'm not sure if there's a direct analogue in core parrot.

The old perl PMC stuff is still in the parrot repository for the moment in languages/perl5/.

Hope this helps, though I'm out of touch enough with Pugs that I don't know if this is related to something in pugs-land that needs updating.

--
Will "Coke" Coleda
[EMAIL PROTECTED]


Reply via email to