Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

unscoped eval

by stefp (Vicar)
on Jul 06, 2002 at 00:18 UTC ( [id://179768]=note: print w/replies, xml ) Need Help??


in reply to Perl 6 questions answered

I told a long time ago I am confident that, someday, someone will come with a program which will allow to use perl as an extensible interactive shell; this will relegate sh and csh in the rank of historically interesting tools.. One of the obstacle in Perl5 is the lack of scopeless eval as I explained at RFC 351: Beyond the amnesic eval . I am happy that the second that the second obstacle is over: perl6 as interactive shell necessitates a tailored grammer mostly to make easier to write literals like file names but the material on the apocalypse 5 shows that will be possible. So I was partially happy when writing Rex2: Interactive Perl vs. Shell Script.

Now you guess my question: will unscoped eval will be supported in perl6?

-- stefp -- check out TeXmacs wiki

Replies are listed 'Best First'.
Re: Re: Perl 6 questions answered
by theorbtwo (Prior) on Jul 06, 2002 at 00:42 UTC

    I doubt there will be somthing as specilized as scopeless eval. OTOH, there will be %MY, by which you may be able to create lexicals above the current scope. That, combined with some preprocessing or a command, would be sufficent to do what you need.


    We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book

      Thank you; Indeed I find the %MY:: pseudo-class mentionned at Apocalypse 2 -Names, used in the Apocalypse 4 page 3 and discussed in Perl6-language but I fail to see how it solves the issues I described in my nodelet and the pages it links to. Also opening the interactive biotop to Perl is well worth a special feature if standard ones don't cut it without mentionning the utility of an interactive Perl as a training device.

      -- stefp -- check out TeXmacs wiki

Re: Re: Perl 6 questions answered
by Elian (Parson) on Jul 06, 2002 at 02:11 UTC
    Scopeless subs and evals are both on the big list 'o features Parrot will support. There may be some issues with them, especially scopeless subs, but it should be doable at the perl level, if Larry chooses to expose it.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://179768]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2024-04-20 04:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found