how to increment variables

From: PF (juliansmail_at_freenet.de)
Date: 12/26/03

  • Next message: Bart Demoen: "Re: how to increment variables"
    Date: 26 Dec 2003 02:44:52 -0800
    
    

    HI i know how to handle with the "is" operator so it is useless
    for a simple variable incrementation as X is X+1,
    I just want to increment a variable which has been instantiated once.

     in C/C++ or Java u would simply use X++; or X=X+1;

    is there any trick how i can get that in prolog to work ???
    please help!


  • Next message: Bart Demoen: "Re: how to increment variables"

    Relevant Pages

    • Re: how to increment variables
      ... > for a simple variable incrementation as X is X+1, ... That thinking doesn't carry over to Prolog. ... not the same thing as a "variable" in C or any imperative language. ... > is there any trick how i can get that in prolog to work ??? ...
      (comp.lang.prolog)
    • Re: Table width - table jumps out of its div
      ... before anything else get the prolog (<?xml ... It enforces quirk mode on IE plus IE's box model. ... is normalized with others further investigations are rather useless. ... That's done the trick! ...
      (comp.infosystems.www.authoring.stylesheets)
    • Re: how to increment variables
      ... > for a simple variable incrementation as X is X+1, ... > is there any trick how i can get that in prolog to work ??? ... increment(X,newX):- newX is X + 1. ...
      (comp.lang.prolog)