On Monday, January 20, 2003, at 09:37  AM, Luke Palmer wrote:
Is this magic, or do coderef args construct closures, or what? How do
you avoid evaluating the argument to elsunless() when feeding it to the
if() sub?
Oops.  Good point.  In this case I see no way of doing it except for
specifying magic:

  sub elsunless ($test is lazy, █ &follow) {
    !$test ?? block() :: follow()
  }
Right, but it's acceptable magic (magic that would be used for any subs, not just the <if>, C<else>, etc.) Not grammar-level magic special to conditionals.

MikeL

Reply via email to