Search found 1204 matches

by Thomas Linder Puls
17 May 2021 11:07
Forum: Visual Prolog
Topic: timerSet Problem n VIP10CE
Replies: 2
Views: 31

Re: timerSet Problem n VIP10CE

That is clearly a bug, which we will fix. Meanwhile you can enclose the call in a show listener:

Code: Select all

        addShowListener({ :- _ = timerSet(20) }),
by Thomas Linder Puls
10 May 2021 11:34
Forum: Visual Prolog
Topic: Using generated LALRGen parser as Scilexer
Replies: 2
Views: 133

Re: Using generated LALRGen parser as Scilexer

A genuine (C++) lexer for sciLexer is capable of token coloring fragments of text. Briefly it works in the following way. The lexer is a state machine each character in the editor transfers from one state to another. The state that a character leads to is saved with the character. Each state is also...
by Thomas Linder Puls
5 May 2021 16:57
Forum: Visual Prolog
Topic: Upgrade Vip7
Replies: 1
Views: 15064

Re: Upgrade Vip7

Write a mail to support@visual-prolog.com then we will look at it.
by Thomas Linder Puls
3 May 2021 14:44
Forum: Visual Prolog
Topic: fail() predicate behavior
Replies: 4
Views: 324

Re: fail() predicate behavior

I knew exactly what the problem was/is; you just experienced a complex instance of it :-).
by Thomas Linder Puls
3 May 2021 12:14
Forum: Visual Prolog
Topic: fail() predicate behavior
Replies: 4
Views: 324

Re: fail() predicate behavior

You are absolutely right that there is a change, and the new behavior is (by definition) correct. And matters will stay like now because it is most "sensible" as I will try to explain here. Consider this little program: class facts t : (unsigned). clauses run() :- assert(t(0)), foreach t(X...
by Thomas Linder Puls
3 May 2021 11:43
Forum: Visual Prolog
Topic: Predicate declaration for using recursion on lists of objects with custom type
Replies: 3
Views: 190

Re: Predicate declaration for using recursion on lists of objects with custom type

In ISO-Prolog there are no types, and some ISO-prolog terms are not typeable in Visual Prolog and will subsequently not be valid, and hence not exist. Let us first consider your test data, it contains sub-terms like this: bonjour In ISO-Prolog such terms just exists and you have have whatever name/s...
by Thomas Linder Puls
25 Apr 2021 11:52
Forum: Visual Prolog
Topic: Updating to VIP 10
Replies: 3
Views: 272

Re: Updating to VIP 10

Yes, I think you are right, but we will of course check it.
by Thomas Linder Puls
25 Apr 2021 11:41
Forum: Visual Prolog
Topic: VP 10 - Linker Message
Replies: 3
Views: 290

Re: VP 10 - Linker Message

We will look at the problem.

(Windows 32 is correct, because it is the linker that is 32 bit).
by Thomas Linder Puls
21 Apr 2021 14:07
Forum: Visual Prolog
Topic: Updating to VIP 10
Replies: 3
Views: 272

Re: Updating to VIP 10

Thank you we will look at the problem.
by Thomas Linder Puls
19 Apr 2021 9:02
Forum: Visual Prolog
Topic: VIP Version 10!
Replies: 1
Views: 248

Re: VIP Version 10!

Nice to hear about good results.

It is a bug that 1 << 32 does not work as expected. You have reported this before, but it must have escaped my mind; it will be fixed in the next release (this time I have made the necessary change).
by Thomas Linder Puls
6 Apr 2021 11:37
Forum: Visual Prolog
Topic: making predicates procedures - single facts?
Replies: 1
Views: 302

Re: making predicates procedures - single facts?

single facts are automatically retracted when a new fact is asserted.

But in general I think you should use fact variables:

Code: Select all

facts     someValue : integer := 2.
See also Facts, and it is also a good idea to follow the tutorials.
by Thomas Linder Puls
4 Apr 2021 13:34
Forum: Visual Prolog
Topic: introspection
Replies: 8
Views: 728

Re: introspection

Considering what I think you ask the short answer is no . Assume this: interface window ... end interface window interface control supports window ... end interface control class textControl : control ... end class textControl We have a class textControl which constructs objects of the interface typ...
by Thomas Linder Puls
28 Mar 2021 20:28
Forum: Visual Prolog
Topic: introspection
Replies: 8
Views: 728

Re: introspection

A typeLibrary is a runtime representation of a type, it is only documented in form of the corresponding interface ($(ProDir)\pfc\reflection\typeLibrary\typeLibrary.i).

Type libraries are used heavily behind the scenes to make polymorphism work. But I doubt that you will need it for anything.
by Thomas Linder Puls
28 Mar 2021 20:14
Forum: Visual Prolog
Topic: writef not printing to Message Window
Replies: 6
Views: 588

Re: writef not printing to Message Window

While vpi::processEvents will help to update the windows, it will also allow users to press on menu-entries, buttons, etc. So it may mix other processing in the "current" one, hence it has many aspects in common with multi-threaded programming or (more precisely) coroutines and asynchronou...