[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] A "Cheating" hangman dealer



On 16 Feb 01, at 13:43, Rich Morin wrote:

> The QS module defines a set of operators ("any", "all", and "eigenstates")
> which allow the programmer to deal with sets of "superposed" values as if
> they were scalars.  If, for instance, I said "$a = any(1,3,5,7,9);", $a
> would have the capability of being any or all of the initial values,
> depending on the context.  I could then say things such as:
> 
>    print "$a\n";			# print a value, at random
>    if ($a > 4) ...		# true; some values qualify
>    if ($a < 0) ...		# false; no values qualify

Actually, is the 'true' correct? --- to handle this kind of thing 
properly, don't you need to do fuzzy logic and shouldn't "$a>4" only 
be "60% true"?

  /Bernie\

-- 
Bernie Cosell                     Fantasy Farm Fibers
mailto:bernie@fantasyfarm.com     Pearisburg, VA
    -->  Too many people, too few sheep  <--          

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe