Reading in programs


next up previous
Next: Information representation
Up: Changing the database
Previous: Traveller
Back: to main list of student notes

Reading in programs

Finally, try combining reading and database-changes. Can you write a predicate that reads two names (atoms) from the terminal, and adds a fact saying that one loves the other? So if the names are romeo and juliet, the predicate must add the fact loves(romeo,juliet). There are not many languages in which you can read in new bits of program at run time!


next up previous
Next: Information representation
Up: Changing the database
Previous: Traveller
Back: to main list of student notes



Jocelyn Paine
Tue Jun 4 18:10:48 BST 1996