Search found 29 matches

by Dmitry Ermolaev
2 Sep 2013 7:37
Forum: Visual Prolog
Topic: ERLANG - prototype of ProLog
Replies: 0
Views: 921

ERLANG - prototype of ProLog

Anybody see this:
http://www.erlang.org/doc/getting_start ... _prog.html

it copy of prolog + asynchronous data transfer, and parallel computing
by Dmitry Ermolaev
11 May 2009 11:02
Forum: Visual Prolog
Topic: How I may to inherit one predicat from another class?
Replies: 4
Views: 1680

Re:

Victor Yukhtenko wrote:
Thomas Linder Puls wrote:I suggest you read the tutorial Introduction to Classes and Objects
At the page, which Thomas referenced to, you may see the link to the russian version of the same article (if you do not prefere the english vesion).
in this "imtroduction" no answer on my question.
by Dmitry Ermolaev
9 May 2009 18:22
Forum: Visual Prolog
Topic: How I may to inherit one predicat from another class?
Replies: 4
Views: 1680

How I may to inherit one predicat from another class?

in interface I write:

Code: Select all

predicates     from dansw         make_morf_from_node
but in the implementaton?
by Dmitry Ermolaev
2 May 2009 14:20
Forum: Visual Prolog
Topic: error Recursive declaration
Replies: 1
Views: 1384

error Recursive declaration

this code generate error in Vip 7.2 "Recursive declaration"

Code: Select all

domains my_proc1 =  (string, my_proc1) -> string.
but in Vip 5.2 its work!
by Dmitry Ermolaev
22 Feb 2009 12:15
Forum: Visual Prolog
Topic: sleep and resume
Replies: 1
Views: 1918

sleep and resume

how make program with awating response from user in simple form.

I need inside the predicate stop and wait for double-click on listBox item. Then get its value and run. If predicate not wait - it mast end (fail) and all local data lose.
by Dmitry Ermolaev
22 Feb 2009 10:18
Forum: Visual Prolog
Topic: Invalid window type
Replies: 1
Views: 1947

Invalid window type

when I try open window in another window: Form = formWindowExample::new(This), Form:show(), ======================================== Dump: 2009/02/22 13:06:36 ---------------------------------------- Exception: vpi_WinBadType (com/visual-prolog/vpi/vpi) Invalid window type ExtraInfo = win_Create: Un...
by Dmitry Ermolaev
17 Feb 2009 19:02
Forum: Visual Prolog
Topic: How I can use facts from another class?
Replies: 2
Views: 2274

How I can use facts from another class?

for example: class probes01 : probes01 predicates run9: (integer). end class probes01 implement probes01 class facts - run9facts num0 : integer := 0. clauses run9(Num):- num0 := Num, runner::test(probes01::run9facts), !. end implement probes01 class runner : runner predicates test:(factdb). end clas...
by Dmitry Ermolaev
17 Feb 2009 18:56
Forum: Visual Prolog
Topic: How I can inherit class predicates?
Replies: 2
Views: 2188

Re: How I can inherit class predicates?

Victor Yukhtenko wrote:
The common rule is :
Inharitance is possible, when objects may be created.
Objects may be created, when class has interface(s).
Otherwise classes are just independent modules.

sting. good idea - to do inheritance in class predicates to!
by Dmitry Ermolaev
7 Feb 2009 14:04
Forum: Visual Prolog
Topic: How I can inherit class predicates?
Replies: 2
Views: 2188

How I can inherit class predicates?

example

Code: Select all

class aa predicates rr:(). end class aa   class bb : aa end class   implement bb     inherits aa clauses rr(). end implement bb
by Dmitry Ermolaev
3 Feb 2009 9:35
Forum: Visual Prolog
Topic: className and This
Replies: 9
Views: 3236

when I create Object its work properly, but if I need hear value of className from class predicate? In this case inheritance not work :((. Why? It is so simple and intuitive. interface io0 predicates say:(). end interface io0 class io0 : io0 end class io0 implement io0 constants className = "..io0/i...
by Dmitry Ermolaev
3 Feb 2009 6:28
Forum: Visual Prolog
Topic: className and This
Replies: 9
Views: 3236

So, Polymorphism work only in Objects. why I can't use Polymorphism in Classes ? for example instead use This for Objects: write(This:className). use :: write(::className). but it not work now and I need write in all my implementations that code: clauses say():- stdio::write(className ),!.
by Dmitry Ermolaev
3 Feb 2009 6:12
Forum: Visual Prolog
Topic: RedBlackTree and range_nd,key_serach,key_next etc.
Replies: 11
Views: 3671

Yes, Its work: seek_WordAnsw(WordName) = WordNode:- Point = programControl::getBackTrack(), tuple(Key, WordNode) = redBlackTree::upFrom_nd(words_answ_tree, WordName), if string::hasPrefix(Key,WordName,_) then else programControl::cutBackTrack(Point), !, fail end if.
by Dmitry Ermolaev
1 Feb 2009 13:00
Forum: Visual Prolog
Topic: RedBlackTree and range_nd,key_serach,key_next etc.
Replies: 11
Views: 3671

if I need look up in the Tree prefix of key?

Code: Select all

...   words_answ_tree := redBlackTree::insert( words_answ_tree, "aaa.bbb", WordNode), ...     WordNode = redBlackTree::lookUp_nd(words_answ_tree, "aaa"),
by Dmitry Ermolaev
31 Jan 2009 15:41
Forum: Visual Prolog
Topic: className and This
Replies: 9
Views: 3236

interface io0 predicates say:(). end interface io0 class io0 : io0 end class io0 implement io0 constants className = "..io0/io0". clauses say():- stdio::write(className ),!. end implement io0 class www end class www implement www inherits io0 constants className = "WWW". clauses ...some code say(),...
by Dmitry Ermolaev
28 Jan 2009 8:32
Forum: Visual Prolog
Topic: className and This
Replies: 9
Views: 3236

className and This

I make class io0 with predicates: constants className = "..io0/io0". clauses name() = className. say(Format,...):- Str = string::format(Format,...), file::appendString (file_mess, Str, false), stdio::write(Str), !. err(Err,Mess):- Name = name(), say("% % % % % %","\nERROR ",Err," in (",Name,") :",Me...