[newbie]Problems working with database

From: nuvols (AnTeLoDag_at_Brisa.it)
Date: 05/17/04

  • Next message: gai luron: "Re: [newbie]Problems working with database"
    Date: Mon, 17 May 2004 16:07:47 GMT
    
    

    Hi all,
    i have to write a kind of simple softbot in prolog.It takes a perception
         and must choose the right action to do, or updating the memory if I
    give him both perception and actions.
    What's the best way?

    - I've thought to write some clause what_to_do(perception,action).
    but in this case when i use:
    asserta(what_to_do(newperception,newaction)).
    ERROR: No permission to modify static_procedure `asserta/2'

    - I've thought even to don't write any clause, and creating each of them
    calling what_to_do(p,a). This solution is valid, i can see the "new"
    clauses with 'listing.' but now it's the problem: how can I save them?

    Please help me!
    Fabio


  • Next message: gai luron: "Re: [newbie]Problems working with database"

    Relevant Pages

    • Re: [newbie]Problems working with database
      ... you must declare your clause as dynamic, using the dynamic/1 predicate: ... nuvols wrote: ... > give him both perception and actions. ... > - I've thought to write some clause what_to_do. ...
      (comp.lang.prolog)
    • Re: Small C# program takes up too much memory
      ... While I agree with you 100% on every technical level, the user's perception ... Users see the big number in task manager and get cranky. ... still reports a huge amount of memory, and the users perception then is that ... Chris Mullins, MCSD.NET, MCPD:Enterprise, Microsoft C# MVP ...
      (microsoft.public.dotnet.languages.csharp)
    • Re: Evolution means people werent planned.
      ... Ashby) wrote: ... and the past will neither notice nor be affected by the flow of time. ... You asked "why has our perception of time not changed by our modern ... assume the memory mechanisms that operate in human beings. ...
      (uk.religion.christian)
    • Re: absolutely the worst driver justification
      ... facts anyway. ... Perception and memory are selective--most of us shade things at least a ...
      (rec.bicycles.misc)
    • Re: Small C# program takes up too much memory
      ... Especially as these apps load, ... stuff - they're just sitting idle and reporting that they're taking 20-50 ... still reports a huge amount of memory, and the users perception then is ...
      (microsoft.public.dotnet.languages.csharp)