At 12:13 AM 7/8/2001 +0100, Simon Cozens wrote:
>On Sat, Jul 07, 2001 at 05:51:00PM -0500, Jarkko Hietaniemi wrote:
> >       A basic block is a sequence of consecutive statements
> >       in which flow of control enters at the beginning and
> >       leaves at the end without halt or possibility of
> >       branching except at the end.
>
>Oh, I know what Bblocks are. We even have B::Bblock to detect them!
>I was just trying to work out whether they'd always be related to
>scope

BBlocks will have to be related to scope, since scope alters the way things 
behave, and BBlocks have to be essentially atomic.

On the other hand, that doesn't mean that scope at the perl level has to 
necessarily map to blocks. Blocks are, for the interpreter, both a looping 
and scoping construct. I want to separate those more than we do now, so you 
can have loops that don't start scopes, the same way you have scopes that 
don't do loops.

What I really want are scopeless subs, but those will have some limitations 
(like you can't declare any lexical variables, unless we allow dynamic 
creation of lexicals). Still, worth it I think.


                                        Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
[EMAIL PROTECTED]                         have teddy bears and even
                                      teddy bears get drunk

Reply via email to