"if" in PIR

jerry gay jerry.gay at gmail.com
Thu Nov 13 17:21:51 UTC 2008


On Thu, Nov 13, 2008 at 08:58, Will Coleda <will at coleda.com> wrote:

> On Thu, Nov 13, 2008 at 11:36 AM, Allison Randal <allison at parrot.org>
> wrote:
> > Last I checked, those macros were not stable (particularly when
> > embedding one control structure within another), and not recommended for
> > general use. That could have changed.
>
> I spent some time at last YAPC bringing them up to date and adding
> tests for them, so they are at least kind of stable.(please don't
> assume this means I necessarily want to keep them.)
>
> - If we need more test cases, let's add them;
> - if we want them to be just an example, let's move them
> - if we want to discourage this kind of approach entirely, let's
> delete them. (or make an example of them as above, but with a warning
> in the docs.)
>
> the nesting problem allison describes is due to incomplete or incorrect
implementation of macro-local variables (variables for use strictly within
macro bodies). i remember discussion on this topic some time ago, but i
don't recall the current status. if we have macro-local variables, then we
should be able to modify the hllmacro bodies to properly support nesting. at
that point, i think they're helpful enough to keep around, and should be
available for use by pir developers.

~jerry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.parrot.org/pipermail/parrot-dev/attachments/20081113/b0b1c142/attachment.htm 


More information about the parrot-dev mailing list