Subject: problems with asserta.

From: "Ed Kovach" <[email-masked]>
Date: Tue, 14 Nov 2000 15:40:21 -0500

Hi,

I am trying to use asserta,but  I keep getting an error.  Here is an example
of my problem.
(The code to generate the fibonacci series.)

fib(1,1).
fib(2,1).
fib(N,F) :-
     N > 2,
     N1 is N - 1, fib(N1, F1),
     N2 is N - 2, fib(N2, F2),
     F is F1 + F2,
     asserta(fib(N,F)).

The message I get is

ERROR: No permission to modify static_procedure 'fib/2'
^ Exception: (14) asserta(fib(3,2)) ?

What am I doing wrong?  Thanks for your help!

Ed Kovach [email-masked]