FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


facts declaration

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
mdosnov2016



Greece
Joined: 19 Nov 2016
Posts: 34

PostPosted: 13 Oct 2017 5:51    Post subject: facts declaration Reply with quote

I have the following structure according to the prolog notes:

class backend
 
    open resourceIdentifiers

 domains  

...

facts

....

predicates

end class backend

implement backend


clauses

...

in a backend.pack file:

and I receive the following error:

e154 The section 'facts' is not allowed here backend.pack

where can I position my facts declarations?

(I had them before inside the implementation and I was getting other errors)

_________________
PrologUser
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3124

PostPosted: 13 Oct 2017 7:58    Post subject: Reply with quote

Facts can only be declared inside an implementation. I.e. here

implement backend
% here you can have facts
end implement backend

This means that what is know as global database/facts in Vip5x does no longer exist.

Also look at Migration from Visual Prolog 5.

_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum