Search found 33 matches

by Parker
Thu Apr 22, 2010 3:22 pm
Forum: Help
Topic: "Reference to unknown object: xxx" warning
Replies: 6
Views: 6977

Re: "Reference to unknown object: xxx" warning

See also this thread: viewtopic.php?f=15&t=62
by Parker
Wed Apr 21, 2010 2:59 pm
Forum: Help
Topic: "Reference to unknown object: xxx" warning
Replies: 6
Views: 6977

Re: "Reference to unknown object: xxx" warning

Perhaps world_state isn't an object but some other entity such as a category. You need to provide more information.

Cheers,
Parker
by Parker
Wed Mar 10, 2010 4:04 pm
Forum: Wish list
Topic: alias to rename objects
Replies: 11
Views: 12410

Re: alias to rename objects

Compile-time aliases sound good to me. I can't think of any (sensible) situation where it would be useful to change the implementation of an ADT at run-time; or any other application of run-time object aliases for that matter.
by Parker
Tue Mar 09, 2010 8:16 am
Forum: Wish list
Topic: alias to rename objects
Replies: 11
Views: 12410

Re: alias to rename objects

The downside of the uses/2 directive is that you have to track which predicates are being used.

I think object aliases are an elegant way to swap between ADT implementations, but I also understand that you don't want to have too many directives.

Thanks for considering it, Paulo.

Parker
by Parker
Mon Mar 08, 2010 6:55 pm
Forum: Wish list
Topic: alias to rename objects
Replies: 11
Views: 12410

Re: alias to rename objects

Hi Paulo, I did say it wasn't urgent, but wow you've already got an initial implementation! Hmm... maybe I should try some reverse psychology for the features I really want. I'll be sending you a list of things I really really don't want very soon. :lol: Object aliases within an entity make sense to...
by Parker
Mon Mar 08, 2010 3:54 pm
Forum: Wish list
Topic: alias to rename objects
Replies: 11
Views: 12410

alias to rename objects

Here is a quick idea, not at all urgent. I recently used two tree data-structure implementations (rbtree and bintree) that both satisfy the dictionaryp protocol. When swapping from one to the other, each call had to be renamed: e.g. rbtree::lookup(Point, Value, ClassificationsTree) had to be renamed...
by Parker
Fri Nov 06, 2009 10:44 am
Forum: Porting Prolog applications
Topic: Porting SWI coverage analysis tool
Replies: 1
Views: 15426

Porting SWI coverage analysis tool

Hi Paulo, There is an application in SWI's plunit that does coverage analysis which is extremely useful to see if any code has been missed by unit testing. For details see http://www.swi-prolog.org/pldoc/doc_for?object=section%282%2c%20%278%27%2c%20swi%28%27%2fdoc%2fpackages%2fplunit.html%27%29%29 I...
by Parker
Thu Oct 22, 2009 8:37 am
Forum: Porting Prolog applications
Topic: Why is Logtalk not written in Logtalk?
Replies: 5
Views: 11782

Re: Why is Logtalk not written in Logtalk?

If Logtalk's reflection capabilities are sufficient, then that is already a good start. But bear in mind there may be a number of potential uses that could benefit from a re-usable codebase. the dependency checker (as already mentioned) the loader generator (automatically find dependencies so that f...
by Parker
Fri Oct 16, 2009 3:43 am
Forum: Porting Prolog applications
Topic: Why is Logtalk not written in Logtalk?
Replies: 5
Views: 11782

Re: Why is Logtalk not written in Logtalk?

Don't get me wrong, I'm not trying to persuade you to bump re-writing Logtalk up your priority list, I'm sure you have plenty of other more important things to do. I want to discuss the pros/cons of writing Logtalk in Prolog or Logtalk. So just see this as food for thought. Writing the Logtalk compi...
by Parker
Wed Oct 14, 2009 3:35 pm
Forum: Porting Prolog applications
Topic: Why is Logtalk not written in Logtalk?
Replies: 5
Views: 11782

Why is Logtalk not written in Logtalk?

Please don't take it badly Paulo, it's only intended as constructive criticism. :-) Why is Logtalk not written in Logtalk? The Logtalk compiler is written in Prolog and is about 16,000 lines of source. It is not "programming in the small", so why isn't Logtalk written in Logtalk? There's a principle...
by Parker
Thu Oct 01, 2009 3:56 pm
Forum: Wish list
Topic: Automatically generate dependencies?
Replies: 3
Views: 7393

Re: Automatically generate dependencies?

New ticket on trac: http://trac.logtalk.org/ticket/35

Existing cross-referencers I have seen include a parser and a list of built-ins. But this is already implemented in the logtalk compiler, so would it be sensible to use that rather than start afresh?
by Parker
Thu Oct 01, 2009 1:39 pm
Forum: Wish list
Topic: Logtalk project-specific settings
Replies: 1
Views: 4555

Re: Logtalk project-specific settings

This has changed slightly. See http://logtalk.org/manuals/userman/inst ... g_settings

Parker
by Parker
Tue Jul 07, 2009 9:16 am
Forum: Help
Topic: incomprehensible error message
Replies: 16
Views: 14888

Re: incomprehensible error message

joerg wrote: (0) There is no compiler-independent way to create standalone executables from Logalk porgrams.
This is interesting. A way of creating an executable that works for all compilers that support it would be a very good development.

Parker
by Parker
Thu Mar 05, 2009 11:42 am
Forum: Help
Topic: retract_exactly/1
Replies: 1
Views: 3570

retract_exactly/1

Hi Paulo, Could you advise me on how to implement Richard O'Keefe's retract_exactly/1? My understanding is that it is still not possible in Logtalk without reaching through to the backend Prolog. retract_exactly(Clause) :- ( nonvar(Clause) -> Clause = :-(Head,Body) ; Head = Clause, Body = true ), mu...
by Parker
Thu Feb 26, 2009 2:26 pm
Forum: Wish list
Topic: less verbose compiler messages
Replies: 25
Views: 24701

Re: less verbose compiler messages

I also find it a bit strange to have to edit a config file to change what are essentially project-specific parameters. You don't need to edit a config file to change project-specific parameters, only to change default parameter values. The natural place to change such settings (in my opinion) would...