Discussions related to Visual Prolog
jarnold30
Posts: 19
Joined: 9 Aug 2020 15:30

Vis Prolog 10: problem with isSome

Unread post 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?
choibakk
Active Member
Posts: 30
Joined: 5 Sep 2019 19:30

Re: Vis Prolog 10: problem with isSome

Unread post 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
jarnold30
Posts: 19
Joined: 9 Aug 2020 15:30

Re: Vis Prolog 10: problem with isSome

Unread post by jarnold30 »

Thanks for your help
Post Reply