Re: Bit-manipulation in ISO Prolog

From: Bart Demoen (bmd_at_cs.kuleuven.ac.be)
Date: 08/17/04


Date: Tue, 17 Aug 2004 10:32:20 +0200

Nameless wrote:

> No, you're just trying to be difficult (as usual).

If you ask a solution for a problem without the explicit mentioning
that it needs properties rational and effective, people in this
newsgroup (especially me) are inclined to deliver answers with
those properties. By explicitly mentioning them as requirements,
you make it sound like a trick question, that's why I asked.

But let's focus on the questions and not on their epitheton ornans.

You ask how to do bitewise not ... how is bitwise not different
from what \ does in ISO ? An example would be welcome.

xor(X,Y,Result) :- Result is (X /\ \Y) \/ ((\X) /\ Y).

Is that ok for you ?

> In fact, I'd really prefer that _you_ didn't reply
> to any of my messages

Once you put your message in a newsgroup, it is no longer
yours. Especially if you are nameless.

Cheers

Bart Demoen



Relevant Pages

  • Finite list of things that vary with CPU-type
    ... That must be a trick question. ... According to the apparent ... beliefs of some people on this newsgroup, ...
    (comp.lang.c)
  • Re: JD Drew! P.O.G.
    ... Dano wrote: <Is RC NOT the single most hated poster in this newsgroup?> ... Trick question, right? ...
    (alt.sports.baseball.bos-redsox)