Search found 17 matches

by rbt
Thu Jun 30, 2011 7:36 am
Forum: Help
Topic: GProlog call built-in predicates
Replies: 6
Views: 9080

Re: GProlog call built-in predicates

Paulo Moura wrote:I cannot reproduce the problem. Please post a small example that illustrates it. Be sure to be using the latest Logtalk development release.
Oh sorry, I just forgot to set the environment variables to the Logtalk development release. Now it works. Thanks.
by rbt
Wed Jun 29, 2011 4:19 pm
Forum: Help
Topic: GProlog call built-in predicates
Replies: 6
Views: 9080

Re: GProlog call built-in predicates

Yes. I have just build the MacOS X 10.6 installer for GNU Prolog 1.4.0. I also retested the stable 1.4.0 version with the current Logtalk development version and found no issues. I found out that the problem with the built-in predicates still occurs for some predicates, namely write/1 and nl/0. Reg...
by rbt
Wed Jun 29, 2011 3:40 pm
Forum: Help
Topic: GProlog call built-in predicates
Replies: 6
Views: 9080

Re: GProlog call built-in predicates

If you want to use the latest beta of GNU Prolog 1.4.0, you will also need to use the latest development version of Logtalk. GNU Prolog 1.4.0 makes some incompatible changes (w.r.t. previous versions) regarding predicate properties that affect how Logtalk tests for built-in predicates. Ah ok. Thank...
by rbt
Wed Jun 29, 2011 7:52 am
Forum: Help
Topic: GProlog call built-in predicates
Replies: 6
Views: 9080

GProlog call built-in predicates

I just have tried the lasted development version of gprolog (gprolog-20110622) and noticed that built-in predicates can only be called inside a logtalk object with the enclosing '{}'. Unfortunately, that also affects the logtalk libraries. See, for example, the following call: | ?- list::length([d,a...
by rbt
Mon May 23, 2011 9:23 am
Forum: Wish list
Topic: Logtalk Wiki + Community Driven Library Repository
Replies: 7
Views: 13501

Re: Logtalk Wiki + Community Driven Library Repository

P.S. For some opportunities for contributing to Logtalk, see also http://forums.logtalk.org/viewforum.php?f=28 . Most of the tasks there would benefit the logic programming community in general, not only Logtalk. Thank you for that hint. I think it is a good idea to collect opportunities for contri...
by rbt
Mon May 23, 2011 9:19 am
Forum: Wish list
Topic: Logtalk Wiki + Community Driven Library Repository
Replies: 7
Views: 13501

Re: Logtalk Wiki + Community Driven Library Repository

Sorry for answering so late, but I was very busy last week. There was a non-oficial but public Logtalk Wiki but it was closed due to abuse. I can give it another try but before that we need to discuss the role of the Wiki. My idea was to use the a Wiki to (additionally) document logtalk and the "com...
by rbt
Thu May 12, 2011 2:19 pm
Forum: Wish list
Topic: Logtalk Wiki + Community Driven Library Repository
Replies: 7
Views: 13501

Logtalk Wiki + Community Driven Library Repository

I wonder whether it would be a good Idea to more encourage people to somehow contribute to the "Logtalk Project". More precisely, I am thinking about a wiki and a community-driven repository for logtalk libraries. What do you think about these ideas?
by rbt
Tue Apr 12, 2011 9:28 am
Forum: Help
Topic: Debugging with large terms
Replies: 5
Views: 8618

Re: Debugging with large terms

I'm using swi-prolog as the back-end compiler. Logtalk 2.42.3 added a debugger command "p" to the Logtalk built-in debugger. This command prints the current goal using the print/1 predicate when available, which is the case with SWI-Prolog. Thus, you can define clauses for the portray/1 hook predic...
by rbt
Sun Apr 10, 2011 6:18 pm
Forum: Help
Topic: Debugging with large terms
Replies: 5
Views: 8618

Re: Debugging with large terms

Debugging methods that deal with large terms may be cumbersome due to an information overload. Is there any way to control how terms are printed in the debugging mode? Assuming that you're talking about term printing depth, there is no standard solution. What Prolog compiler are you using and what ...
by rbt
Fri Apr 08, 2011 11:39 am
Forum: Help
Topic: Debugging with large terms
Replies: 5
Views: 8618

Debugging with large terms

Hi Logtalk friends!

Debugging methods that deal with large terms may be cumbersome due to an information overload. Is there any way to control how terms are printed in the debugging mode?

Kind Regards,

rbt
by rbt
Mon Oct 11, 2010 4:02 pm
Forum: Wish list
Topic: Hierarchical Namespaces
Replies: 3
Views: 9071

Hierarchical Namespaces

When the projects are getting bigger and existing Logtalk code should be reused in new projects then the flat namespaces might be become annoying. Paulo, did you ever thought about the support of hierarchical namespaces (e.g., like in Java)? Or is there another approach to deal with the problem of h...
by rbt
Thu Apr 22, 2010 7:20 am
Forum: Help
Topic: "Reference to unknown object: xxx" warning
Replies: 6
Views: 10326

Re: "Reference to unknown object: xxx" warning

However, I still have a question concerncing this warning. I have two (prototype) objects -- let's call them foo1 and foo2 -- that are "calling" each other. Is it possible to avoid the warning in this scenario?

Best,

rbt
by rbt
Wed Apr 21, 2010 5:14 pm
Forum: Help
Topic: "Reference to unknown object: xxx" warning
Replies: 6
Views: 10326

Re: "Reference to unknown object: xxx" warning

I think, I just found the problem. world_state -- or to be more precise now world_state(_) -- is a parametric object. I used

Code: Select all

:- uses(world_state).
in statement_prover instead of

Code: Select all

 :- uses(world_state(_)). 
Sorry, for being so blind.

Best,

rbt
by rbt
Wed Apr 21, 2010 2:13 pm
Forum: Help
Topic: "Reference to unknown object: xxx" warning
Replies: 6
Views: 10326

"Reference to unknown object: xxx" warning

Currently, i'm trying to consider all logtalk compiler warnings. Unfortunately, I don't really understand some occurences of the "Reference to unknown object: xxx" warning. For example, take a look at the following compiler output: % /.../src/knowledge/.lgt_tmp/world_state.pl compiled 0.00 sec, 7,58...
by rbt
Wed Mar 24, 2010 10:12 am
Forum: Help
Topic: Problems with the Documentation Generation
Replies: 3
Views: 6356

Problems with the Documentation Generation

Hi Logtalk friends, i do have/had some problems with the generation of documentation files. I tried lgt2pdf.sh and lgt2html.sh. First, both scripts use 'grep -l "<logtalk>" *.xml' to find all doc xml files. That seems to be a "bug" because the generated files do not contain "<logtalk>" but <logtalk ...