Search found 1327 matches

by Thomas Linder Puls
25 May 2023 8:21
Forum: Visual Prolog
Topic: Do I have to uninstall vp 10.01, in order to upgrade to 10.02?
Replies: 4
Views: 133

Re: Do I have to uninstall vp 10.01, in order to upgrade to 10.02?

I believe/think the installer will in any case first uninstall the old version and then install the new one.

And in any case you will not need to purchase another licenses.
by Thomas Linder Puls
19 May 2023 22:38
Forum: Visual Prolog
Topic: A Parallel processing version of VIP?
Replies: 2
Views: 70

Re: A Parallel processing version of VIP?

No, there are no such plans. It seems that CUDA is a very huge set of libraries, which it would be very difficult to support.
by Thomas Linder Puls
10 May 2023 13:36
Forum: Visual Prolog
Topic: Chaind Db
Replies: 1
Views: 75

Re: Chaind Db

The chainDB is mainly present for backwards compatibility. I don't think it is suitable as a real database, because it has no backup and recovery facilities. If anything goes wrong during operation all your data may be lost. But it can be used for internal purposes (e.g. caching or calculations) whe...
by Thomas Linder Puls
28 Apr 2023 11:24
Forum: Visual Prolog
Topic: Set Operations in Visual Prolog
Replies: 1
Views: 143

Re: Set Operations in Visual Prolog

I am not sure I understand the question, subsequently anything I answer may be wrong :-). And I believe your code looks more like ISO Prolog in the sense that you seem to have a vague boundary between code and data. In Visual Prolog there is no term interpretation machinery, so you cannot pass code ...
by Thomas Linder Puls
13 Mar 2023 9:03
Forum: Visual Prolog
Topic: Date time and hour
Replies: 5
Views: 390

Re: Date time and hour

Using timers like that is somewhat "old fashioned", it has the disadvantage that it "mixes" all your timers in a single handler. Using tickAction's (and delayCall for one shots) has a more direct handler approach: clauses new() :- applicationWindow::new(), generatedInitialize(), ...
by Thomas Linder Puls
16 Feb 2023 9:29
Forum: Visual Prolog
Topic: Another feature suggestion
Replies: 4
Views: 335

Re: Another feature suggestion

Unfortunately, that dream will not come through. Interfaces define the interface of objects the implementation is written in the implementation. Also recall that though you think of a class and interface together, a single interface can be used for many classes. Likewise a class defines the "in...
by Thomas Linder Puls
16 Feb 2023 9:21
Forum: Visual Prolog Tips & Samples
Topic: PropertyDepot - property code generator and repository
Replies: 6
Views: 548

Re: PropertyDepot - property code generator and repository

Regarding string: I didn't supply a value. I assumed it would work since that worked for integer, etc.
by Thomas Linder Puls
14 Feb 2023 10:53
Forum: Visual Prolog
Topic: Another feature suggestion
Replies: 4
Views: 335

Re: Another feature suggestion

Well, I have two "problems" with this suggestion. First of all it is a strict rule that implementation details are written in the implementation; interfaces only defines the interface. Secondly, the suggested auto code has exactly the same effect as implementing the property with a fact: i...
by Thomas Linder Puls
14 Feb 2023 10:44
Forum: Visual Prolog Tips & Samples
Topic: PropertyDepot - property code generator and repository
Replies: 6
Views: 548

Re: PropertyDepot - property code generator and repository

I think you should use the sciLexer instead of an edit control. So I have update a few files.
Using sciLexer
Using sciLexer
using_sciLexer.png (86.65 KiB) Viewed 361 times
I have problems with string properties.

You should also notice that auto-formatting will write the code differently.
by Thomas Linder Puls
23 Nov 2022 11:01
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 1696

Re: SciLexer tab key - line indent vs. tab insert

In future releases the sciLexer will have these key binding predicates, where the three last ones are new: predicates assignCmdKey : (unsigned KeyDefinition, integer SciCommand). % This assigns the given key definition to a Scintilla command identified by sciCommand. % sciCommand can be any SCI_* co...
by Thomas Linder Puls
23 Nov 2022 10:21
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 1696

Re: SciLexer tab key - line indent vs. tab insert

In the sciLexer itself you can assign sciLexer -built-in actions to keys. But to perform your own custom commands you will need to handle the keypress before it reaches the sciLexer . We have done that in a "hard coded" fashion to deal with the tab mechanism we want(ed). I think it makes s...
by Thomas Linder Puls
15 Nov 2022 12:52
Forum: Visual Prolog
Topic: SciLexer tab key - line indent vs. tab insert
Replies: 16
Views: 1696

Re: SciLexer tab key - line indent vs. tab insert

Sorry, I overlooked some details :oops: .

The second argument of assignCmdKey is a command (sciLexer_native::sci_...) not a key:

Code: Select all

        sciLexer_ctl:assignCmdKey(sciLexerBase::key_tab, sciLexer_native::sci_tab),
by Thomas Linder Puls
15 Nov 2022 12:45
Forum: Visual Prolog
Topic: Incompatible types
Replies: 1
Views: 366

Re: Incompatible types

It is a bug. Actually, this bug turns up over and over in different contexts, but I guess that it will eventually be solved for all contexts. The usual work-around also helps in this case. Redefine your domains like this: domains repDomain{T} = repDomain(arrayM{T} ArM, recoverableState State). And c...