Search found 33 matches
- Thu Apr 22, 2010 3:22 pm
- Forum: Help
- Topic: "Reference to unknown object: xxx" warning
- Replies: 6
- Views: 9978
Re: "Reference to unknown object: xxx" warning
See also this thread: viewtopic.php?f=15&t=62
- Wed Apr 21, 2010 2:59 pm
- Forum: Help
- Topic: "Reference to unknown object: xxx" warning
- Replies: 6
- Views: 9978
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
Cheers,
Parker
- Wed Mar 10, 2010 4:04 pm
- Forum: Wish list
- Topic: alias to rename objects
- Replies: 11
- Views: 16678
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.
- Tue Mar 09, 2010 8:16 am
- Forum: Wish list
- Topic: alias to rename objects
- Replies: 11
- Views: 16678
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
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
- Mon Mar 08, 2010 6:55 pm
- Forum: Wish list
- Topic: alias to rename objects
- Replies: 11
- Views: 16678
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...
- Mon Mar 08, 2010 3:54 pm
- Forum: Wish list
- Topic: alias to rename objects
- Replies: 11
- Views: 16678
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...
- Fri Nov 06, 2009 10:44 am
- Forum: Porting Prolog applications
- Topic: Porting SWI coverage analysis tool
- Replies: 1
- Views: 18537
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...
- Thu Oct 22, 2009 8:37 am
- Forum: Porting Prolog applications
- Topic: Why is Logtalk not written in Logtalk?
- Replies: 5
- Views: 14965
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...
- Fri Oct 16, 2009 3:43 am
- Forum: Porting Prolog applications
- Topic: Why is Logtalk not written in Logtalk?
- Replies: 5
- Views: 14965
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...
- Wed Oct 14, 2009 3:35 pm
- Forum: Porting Prolog applications
- Topic: Why is Logtalk not written in Logtalk?
- Replies: 5
- Views: 14965
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...
- Thu Oct 01, 2009 3:56 pm
- Forum: Wish list
- Topic: Automatically generate dependencies?
- Replies: 3
- Views: 9657
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?
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?
- Thu Oct 01, 2009 1:39 pm
- Forum: Wish list
- Topic: Logtalk project-specific settings
- Replies: 1
- Views: 5823
- Tue Jul 07, 2009 9:16 am
- Forum: Help
- Topic: incomprehensible error message
- Replies: 16
- Views: 20697
Re: incomprehensible error message
This is interesting. A way of creating an executable that works for all compilers that support it would be a very good development.joerg wrote: (0) There is no compiler-independent way to create standalone executables from Logalk porgrams.
Parker
- Thu Mar 05, 2009 11:42 am
- Forum: Help
- Topic: retract_exactly/1
- Replies: 1
- Views: 4844
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...
- Thu Feb 26, 2009 2:26 pm
- Forum: Wish list
- Topic: less verbose compiler messages
- Replies: 25
- Views: 32983
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...