On Fri, 15 Sep 2000 12:01:55 -0400, Mark-Jason Dominus wrote:

>When you translate a script, the translator should translate things so
>that they have the same meanings as they did before.  If it doesn't
>also translate eval, then your Perl 5 scripts will be using the Perl 6
>eval, which isn't what you wanted.

Er... are we talking of the same thing? I should think that P5->P6 would
be a one time operation. A Perl 6 eval that turns a Perl 5 code string
into a Perl 6 code string every time, helps in quickly getting a working
"Perl6" script out of the door, but it's fake. It's takes a pretty hefty
conversion stage every single time. If your P5->P6 translator is slow,
i.e. written in Perl, this would imply a pretty big performace hit. It
also doesn't really help you in *really* converting the eval string to
Perl6. What would help is a debugging mode that prints out the converted
code string, so that the programmer can modify his script so that it
does indeed directly produce this (or a similar) string. From there on,
you no longer need the Perl5->Perl6 translation.

-- 
        Bart.

Reply via email to