Search found 9 matches

by choibakk
22 May 2020 2:58
Forum: Visual Prolog
Topic: Wishlist Item
Replies: 4
Views: 148

Wishlist Item

Hi Thomas, tried to email you but could not directly. Since you helped me with external functions [in an eallier support post for those that are looking] (to overcome a multiplication overflow when the overflow is desired) I have added a few more functions to my external "C" DLL, which makes me love...
by choibakk
23 Apr 2020 21:18
Forum: Visual Prolog
Topic: Multiplication Overflow
Replies: 4
Views: 1351

Re: Multiplication Overflow

That makes perfect sense! Thanks.
by choibakk
23 Apr 2020 1:32
Forum: Visual Prolog
Topic: Multiplication Overflow
Replies: 4
Views: 1351

Re: Multiplication Overflow

Thank you Thomas for the helpful response. I have implemented the external function in a DLL. I started with a lib as you suggested, and almost had it working but received a read IO error from the compiler on the static ".lib" file, so switched it to a DLL and it worked the very first time. There is...
by choibakk
21 Apr 2020 23:54
Forum: Visual Prolog
Topic: Multiplication Overflow
Replies: 4
Views: 1351

Multiplication Overflow

I'm trying to implement a version of "De Bruijn Multiplication" that counts on an arithmetic overflow. For instance: multiplying let say V=512, so (V * 0x03f79d71b4cb0a89). I have everything working except for the overflow. And I checked the correct functionality using a programming calculator to en...
by choibakk
21 Nov 2019 3:15
Forum: Visual Prolog Tips & Samples
Topic: xyChartDemo - GDIPLUS XY graphing demonstration
Replies: 4
Views: 5614

Re: xyChartDemo - GDIPLUS XY graphing demonstration

This is great! I have the demo working on V9. However, I needed to change the following: %fNameLABEL = "Lucida Sans". % used for axis labels %fNameVALUE = "Lucida Sans". % used for axis values at tics & grids fNameLABEL = "Arial". % used for axis labels fNameVALUE = "Arial". % used for axis values a...
by choibakk
18 Oct 2019 19:51
Forum: Visual Prolog
Topic: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
Replies: 2
Views: 3035

Re: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.

Thank you for the great response! I was so proud of my little "slide" routine in 8 lines of code. And then I see this (your version): slide4([X1, X2, X3 | Rest], V1, V2, V3) :- V1 = X1, V2 = X2, V3 = X3 or slide4([X2, X3 | Rest], V1, V2, V3). Brilliant. Thanks again.
by choibakk
18 Oct 2019 2:10
Forum: Visual Prolog
Topic: Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.
Replies: 2
Views: 3035

Using "anyflow" works in "pro" file but seems to need all declared iterations in the "cl" file.

This is only my 2nd post and again I'll state again I haven't developed with prolog in about 30 years until just recently (my previous experience being "Turbo Prolog" in the late 80's). So I have this quick question. I created a predicate called "slide" that (slides) through a List performing some b...
by choibakk
6 Sep 2019 21:21
Forum: Visual Prolog
Topic: Saving/Consulting a List of objects
Replies: 3
Views: 2767

Re: Saving/Consulting a List of objects

Thanks for the replies. The responses make perfect sense.
by choibakk
5 Sep 2019 19:46
Forum: Visual Prolog
Topic: Saving/Consulting a List of objects
Replies: 3
Views: 2767

Saving/Consulting a List of objects

Its been 20+ years since I used Prolog so please forgive if this is a bad question or has already been answered. I've been going through the "VisualPrologBeginners.pdf" and ran into a problem trying to save my class facts. On page 131 (Section 8.6) there is the following snippet which is exactly whe...