[newbie]Problems working with database
From: nuvols (AnTeLoDag_at_Brisa.it)
Date: 05/17/04
- Previous message: Bill Spight: "Re: DCG parsing - Natural Language in Prolog"
- Next in thread: gai luron: "Re: [newbie]Problems working with database"
- Reply: gai luron: "Re: [newbie]Problems working with database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: Bill Spight: "Re: DCG parsing - Natural Language in Prolog"
- Next in thread: gai luron: "Re: [newbie]Problems working with database"
- Reply: gai luron: "Re: [newbie]Problems working with database"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|