[Coco] replicating bitwise operators in BASIC
William Astle
lost at l-w.ca
Fri Sep 9 15:53:06 EDT 2016
Color basic only allows a single parameter inside the parens for USR()
functions and you cannot use them as operators (standard infix style
like +, -, etc.) That's not to say it wouldn't be more convenient if you
were doing a lot of xors or what have you.
You could do something that results in syntax like "Q = USR(A),B" with
some careful coding.
On 2016-09-09 01:04 PM, Allen Huffman wrote:
> The funnest thing is that actually achieves a real result :)
>
> Did someone offer to create a USR() function to do this?
>
>> On Sep 9, 2016, at 2:02 PM, Rogelio Perea <os9dude at gmail.com> wrote:
>>
>> On Fri Sep 9 2016 Allen Huffman wrote:
>>
>> Yep, this is why people hate computers...
>>>
>>> Q = NOT ( NOT ( NOT ( A AND B ) AND A ) AND NOT ( NOT ( A AND B ) AND B )
>>> )
>>>
>>>
>> You kidding? no hate here: this has been one of the most logical and
>> interesting exchanges on this list as of late!
>>
>> Looooove it :-)
>>
>>
>> -- RP
>>
>> --
>> Coco mailing list
>> Coco at maltedmedia.com
>> https://pairlist5.pair.net/mailman/listinfo/coco
>
More information about the Coco
mailing list