--- Michael Lazzaro <[EMAIL PROTECTED]> wrote:
> 
> For this version of the operator list, (since I am unsure that
> _every_ 
> unary/binary op has a meaningful hyper, and some tentatively have 
> _two_) I have placed all of them in EXPLICITLY.  Please check that I 
> didn't miss any, or put any in that are incorrect.
> 
> hyperoperators:
> 
>    [op]  - as prefix to any unary/binary operator, "vectorizes" the 
> operator

What, if any, guarantees are there about the order of evaluation for
vectorized operations?

If I say

@b = @a[.meth];

and .meth has a side-effect, what can I expect?

>     ?&      ?|      ?^              - [maybe] C-like bool operations
>     ?&=     ?|=     ?^=             - (result is always just 1 or 0)
>    [?&]    [?|]    [?^]             - (hyperversions)
>    [?&]=   [?|]=   [?^]=
>    [?&=]   [?|=]   [?^=]

Two possible differences between double-[&|] and single-[&|]:

1- Force (unlazy) evaluation of all operands.
2- Force conversion to 1 or 0. (Are "true" and "false" going to be
built-in literals, a la java?)

Which (or both) of these are supposed to come from the single-op
versions of these?

>     &       |       ^          - superpositional operations
>     &=      |=      ^=         - conjunctive, disjunctive, exclusive

What's the precedence for these? Same as C?

If so, what happens when you combine them? Are they associative,
distributive, worse?

Since the flexprs haven't collapsed, what interactions are there when
"appending" to them?

$a = 1 | 5;
$a &= 10;

What's $a?

1 | 5 & 10
(1|5) & 10
(1&10) | (5&10) ?

This is probably my ignorance of this coming through. Maybe I need to
get more presents this Christmas ... :-(

On the other hand, some of the examples seem counterintuitive. That is,
considering Damian's:

$seen = $start | $finish;
for ... -> $line {
  print "$line\n" unless $line == $seen;
  $seen |= $line;
}

I can understand the notion of "unless $line is a-or-b-or-c-or..." but
I keep THINKING in terms of "I've seen a-and-b-and-c-and..."

So when would multiple flexops be combined? Anyone have any real world
examples, even simple ones?


=Austin

__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

Reply via email to