Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

assert

Status
Not open for further replies.

FullMoon123

Programmer
Apr 6, 2008
1
US
Hi everybody. I am feeling a bit puzzled. Part of my program involves asserting a bunch of things into the database. For example: assert(p(X)), or assert(p1(a)).

I noticed that every time I run my program without modifying the code, it gives different answers (for the same input). Are the assertions for some reason get done out of order? I tried using asserta and assertz. Does not make the randomness go away. How can I make it go away? Is there a way to enforce the order of assertions?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top