Search found 40 matches

by joerg
Tue Aug 18, 2009 7:12 am
Forum: Help
Topic: Loading Logtalk files at runtime with altdirs on
Replies: 3
Views: 5066

Re: Loading Logtalk files at runtime with altdirs on

logtalk_library_path(home, '$HOME/'). logtalk_library_path(lc, home('.lc/'). logtalk_load(lc(...)). This solution works. Thank you. Here are two small example files that illustrate the problem. I tested them with Logtalk 2.37.3 and Swi-Prolog. test.lgt: :- object(test). :- public(greet/0). greet :-...
by joerg
Mon Aug 17, 2009 12:42 pm
Forum: Help
Topic: Loading Logtalk files at runtime with altdirs on
Replies: 3
Views: 5066

Loading Logtalk files at runtime with altdirs on

Hello, I usually use :- set_logtalk_flag(altdirs, on). But this doesn't seem to be compatible with another habit of mine: loading Logtalk files at runtime. Lc, a program of mine stores user information in a hidden directory (~/.lc). Only if the user wants lc to do certain things does it load certain...
by joerg
Tue Jul 07, 2009 8:13 am
Forum: Help
Topic: incomprehensible error message
Replies: 16
Views: 15193

Re: incomprehensible error message

I forgot the most important reason for not writing portable Logtalk code: (0) There is no compiler-independent way to create standalone executables from Logalk porgrams. I need to share my programs with other people. Mostly, these people are not programmers, let alone Prolog programmers. They are li...
by joerg
Mon Jul 06, 2009 3:12 pm
Forum: Help
Topic: incomprehensible error message
Replies: 16
Views: 15193

Re: incomprehensible error message

Which SWI-Prolog modules would you like to see ported to Logtalk (in order to be able to use them with any back-end Prolog compiler)? I didn't express myself very precisely. It is not only for its modules that I usually write Swi-dependent code. The two main reason why I prefer Swi to Yap (and to o...
by joerg
Fri Jul 03, 2009 2:52 pm
Forum: Help
Topic: incomprehensible error message
Replies: 16
Views: 15193

Re: incomprehensible error message

Note that you can use Logtalk conditional compilation directives in a settings file when using more than one back-end Prolog compiler. Yes, this is what I should do with all of my programs. But I never find the right moment to do it, because most of the time I need to do some quick and dirty hack i...
by joerg
Fri Jul 03, 2009 7:22 am
Forum: Help
Topic: incomprehensible error message
Replies: 16
Views: 15193

Re: incomprehensible error message

There was a '$lgt_call_built_in'/2 predicate in older Logtalk versions that, together with the optimization bug (corrected in 2.37.3) and with the "smart_compilation" flag turned on, could possibly explain the problem. I checked the program again and saw that, although smart compilation is turned o...
by joerg
Thu Jul 02, 2009 12:25 pm
Forum: Help
Topic: incomprehensible error message
Replies: 16
Views: 15193

Re: incomprehensible error message

Just to clarify, you installed the latest Logtalk stable release (2.37.2) or the latest Logtalk development release (which fixes the optimization bug described above)? I installed the latest Logtalk development release. Please test with the "smart_compilation" turned off and using the latest Logtal...
by joerg
Thu Jul 02, 2009 10:37 am
Forum: Help
Topic: incomprehensible error message
Replies: 16
Views: 15193

Re: incomprehensible error message

Hello Paulo, I installed the new Logtalk version, ran the predicate again and it didn't work. Then I tried to add to my code two very simple objects that have the same problem. It didn't work. Then I tried the predicate generate_cis_js_dict againg and -- it worked. But it worked with the older Logta...
by joerg
Wed Jul 01, 2009 2:53 pm
Forum: Help
Topic: incomprehensible error message
Replies: 16
Views: 15193

incomprehensible error message

Hello, when I installed the latest Logtalk version, some code that had been working stopped working and produced the following error message instead: ERROR: '<meta-call>'/1: Undefined procedure: $lgt_call_built_in/2 The relevant piece of code is probably the following: :- object(code_compiler). :- p...
by joerg
Tue May 19, 2009 1:40 pm
Forum: Help
Topic: How to talk about prototypes
Replies: 5
Views: 6302

Re: How to talk about prototypes

Thanks for your tips. I think I will use the child/descendant-parent/ancestor-terminology. P.S. If you have a public web page describing your Logtalk application I will be happy to add a link to the "Links" section of the Logtalk web site. I cannot promise anything, but I will certainly think of the...
by joerg
Tue May 19, 2009 12:35 pm
Forum: Help
Topic: How to talk about prototypes
Replies: 5
Views: 6302

Re: How to talk about prototypes

Would it be misleading to simply call 'person' a child or a descendant of 'morphosyntactic_category' and to call 'morphosyntactic_category' a parent or an ancestor of 'person'? (In the documentation that I am writing right now, I simply do not want to bother the reader with a discussion of the diffe...
by joerg
Tue May 19, 2009 12:20 pm
Forum: Help
Topic: How to talk about prototypes
Replies: 5
Views: 6302

Re: How to talk about prototypes

as derived objects of the 'morphosyntactic category' parent Thanks for the tip. I guess 'morphosyntactic category' cannot be a protocol instead of an object thus allowing 'person', 'number' , ..., to be presented as objects implementing the protocol? First, the code I gave was just an example. But,...
by joerg
Tue May 19, 2009 11:32 am
Forum: Help
Topic: How to talk about prototypes
Replies: 5
Views: 6302

How to talk about prototypes

Hello, In Logtalk there are different types of inheritance. I usually use prototype inheritance. My problem is that I do not know how to talk properly ("Logtalkishly") about my objects in the documentation of my programs. An example: Suppose we have these objects: :- object(morphosyntactic_category,...
by joerg
Fri Feb 27, 2009 3:37 pm
Forum: Wish list
Topic: less verbose compiler messages
Replies: 25
Views: 25132

Re: less verbose compiler messages

O.k. Thanks for all the hints. It is probably not Logtalk, but Prolog which is in need of enhancement (i.e. standardization).
by joerg
Fri Feb 27, 2009 9:45 am
Forum: Wish list
Topic: less verbose compiler messages
Replies: 25
Views: 25132

Re: less verbose compiler messages

I also tested the new version with Yap. Seems to work. By the way: In order to use Logtalk with Yap, I transformed my load_logtalk.pl into a load_logtalk.yap. This process was not totally straightforward and the fact that such things are necessary, if one wants to use Logtalk, might scare possible f...