On Mon, Apr 30, 2001 at 11:55:31AM +0100, FAROUK AMINU wrote: > Dear All, Greetings, > > I have a program like below:- > > X::Lo..Hi, > > > //(Lo, Hi, Mid), > > whenever I put the above in a recursive call with aim of updating the > domain of X and taking the integer qoutient of the updated domain, I get > the following message; > > an example with X::22..26, > > //(0+2,26, Mid) number expected. You should use: Mid is Lo // Hi. The problem you're having is because the '//' predicate does not accept arithmetic expressions. By using 'is', it computes them and then passes the results to the '//' predicate. > > I really do not know where I went wrong, I will be grateful if someone can > help me on this. > > Thanking you, Hope this helps, > > Farouk > =============================================================================== > UMARU FAROUK AMINU > DEPARTMENT OF MANAGEMENT SCIENCE > LANCASTER UNIVERSITY > LANCASTER > LA1 4YX > U.K. > > +44 (0)1524 593865 (School) > +44 (0)1524 383619 (Home) > +44 (0)1524 844885 (Fax) > > --RuiReceived on Mon Apr 30 12:49:59 2001
This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:07:08 PM GMT GMT