medicinesraka.blogg.se

Logtalk prolog
Logtalk prolog












logtalk prolog logtalk prolog

Now let me be clear on something, I can use the "consult('.')." command just fine, I can even use "consult" to open my projects, however if I do this the logtalk console doesn't seem to be using any of the logtalk extensions and so is just vanilla prolog.

LOGTALK PROLOG HOW TO

There was another post that was asking how to do this with SWI as well, but it didn't have any replies and didn't look like any effort had been made to figure the problem out. I also thought that this can't possibly be the practical route to load user created projects in Logtalk. I took a look at the library and couldn't figure out what was going on. and yet it is consulted like so: | ?- logtalk_load(hello_world(loader)).įirst thing I thought was "that is a functor", looking at what it was doing using trace, I found that it was being called from the library and was being told how to get to the examples folder, where it then opened the "hello_world" folder and then the "loader" file. The file called hello_world, is located in the examples folder of the Logtalk files. I'll take the "hello_world" example as the point of discussion. What I don't understand though is what is actually going on when logtalk is loading a file, and how I can load my own projects.

logtalk prolog

I have taken a look at the examples that Logtalk comes with in order to understand the code itself, and in doing so I've been able to load them and execute them perfectly. I'm not sure how to actually consult my own projects using Logtalk. In this case I'm using Prolog SWI, and I've run into a little snag. So this week consisted of me installing Logtalk, one of the extensions for Prolog.














Logtalk prolog