Advertisement
logicmoo

Untitled

May 22nd, 2019
682
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Prolog 0.93 KB | None | 0 0
  1. I notice that only dictionary implements clone/3/4 https://logtalk.org/library/predicate_index.html#clone-3 .. is there some reason that it is?
  2. (I know Logtalk does not implement OO the same way other languages might, but is there a generic way one could?)
  3.  
  4. Another example/sample that also might be useful to create , besides "cloning", would be the creation of a proxy object that might be backed by a dictionary. But by proxy I mean one that might put itself as a version of other objects in the language.
  5.  
  6. I suspect this comes up all the time, and at that point the opportunity arises to teach people about a better sort of object language where "Modules == Objects". But it would still make sense to provide something so people they dont have to leave their existing comfort zones using Logtalk. They can always sell themselves on "Modules == Objects" later. especially if providing them a way to use their existing styles with Logtalk style.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement