develooper Front page | perl.perl6.language | Postings from April 2005

Re: Blocks, continuations and eval()

Thread Previous | Thread Next
From:
David Storrs
Date:
April 8, 2005 08:35
Subject:
Re: Blocks, continuations and eval()
Message ID:
20050408153530.GA53191@megazone.bigpanda.com
On Fri, Apr 08, 2005 at 05:03:11PM +0300, wolverian wrote:

Hi wolverian,

> one day a friend asked if Perl 5 had a REPL facility.
> (Read-Eval-Print-Loop). I told him it has perl -de0, which is different
> [...]
> In Perl 6, the generic solution to fix this (if one wants to fix it)
> seems, to me, to be to add a .eval method to objects that represent
> scopes. I'm not sure if scopes are first class values in Perl 6. Are
> they? How do you get the current scope as an object? Are scopes just
> Code objects?

I'm unclear on what you're looking for.  Are you trying to get a way
to do interactive coding in P6?  Or the ability to "freeze" a scope
and execute it later?  Or something else?

--Dks


-- 
dstorrs@dstorrs.com

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About