say and print (pugs)

2005-04-08 Thread Ovid
You know, this should be simple and maybe I'm overlooking something obvious. I was trying out Pugs and my first program worked great: for 1 .. 6 - $var { say $var; } The second version didn't: for 1 .. 6 { say; } For the life of me, I can't recall if say (or print, for that

Re: say and print (pugs)

2005-04-08 Thread Luke Palmer
Ovid writes: You know, this should be simple and maybe I'm overlooking something obvious. I was trying out Pugs and my first program worked great: for 1 .. 6 - $var { say $var; } The second version didn't: for 1 .. 6 { say; } For the life of me, I can't recall

[PATCH] apo/A05.pod: spelling error

2005-04-08 Thread Steven Schubiger
Attached is a patch that fixes a minor spelling error in apocalypse 5. Steven --- A05.pod.origThu Apr 7 22:59:16 2005 +++ A05.pod Thu Apr 7 22:59:56 2005 @@ -2179,7 +2179,7 @@ tree of objects. Matching against such boundaries or metadata would not be possible -unless

Blocks, continuations and eval()

2005-04-08 Thread wolverian
Hi, (I'm sorry if this topic has already been discussed.) 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 that it does not preserve the lexical scope across evaluated lines. This is because eval STRING creates its

Re: Blocks, continuations and eval()

2005-04-08 Thread David Storrs
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

Re: Blocks, continuations and eval()

2005-04-08 Thread MrJoltCola
At 10:03 AM 4/8/2005, wolverian wrote: To get to the real topic: 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

Re: Blocks, continuations and eval()

2005-04-08 Thread wolverian
On Fri, Apr 08, 2005 at 08:35:30AM -0700, David Storrs wrote: 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? Neither in itself. I'm looking for a way to refer to

Re: Blocks, continuations and eval()

2005-04-08 Thread wolverian
On Fri, Apr 08, 2005 at 12:18:45PM -0400, MrJoltCola wrote: I cannot say how much Perl6 will expose to the high level language. That is what I'm wondering about. I'm sorry I was so unclear. Can you tell me what your idea of a scope is? I'm thinking a continuation, and if that is what you are