Page 1 of 1

Vis Prolog 10: problem with isSome

Posted: 21 Apr 2021 17:49
by jarnold30
Hi folks
I have recently upgraded my project to VP10.
I am getting an error in the default generated code from the ‘main’ class.

If ErrorMessage = isSome(CP:parse()) then

It complains with error c279.

Any ideas what I should do about this?

Re: Vis Prolog 10: problem with isSome

Posted: 21 Apr 2021 21:07
by choibakk
The new version is using some "syntactic sugaring".

You can change your code to:

Code: Select all

        if ErrorMessage = CP:parse():isSome() then
Cheers,
choibakk

Re: Vis Prolog 10: problem with isSome

Posted: 23 Apr 2021 21:25
by jarnold30
Thanks for your help