Discussions related to Visual Prolog
Martin Meyer
VIP Member
Posts: 328
Joined: 14 Nov 2002 0:01

Object initialization problem

Unread post by Martin Meyer »

Hello Thomas,

please check this construction. It throws error c660 : Failure possibility during object initialization (in VIP 7502):

Code: Select all

interface myObj end interface myObj   %---   class myObj : myObj       constructors         new1 : (object Obj).         new2 : ().   end class myObj   %---   implement myObj       clauses         new1(Obj) :-             _MyObj = tryConvert(myObj, Obj),             !.         new1(_Obj) :-             new2().       clauses         new2().   end implement myObj
Regards Martin
User avatar
Thomas Linder Puls
VIP Member
Posts: 1398
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls »

Thank you, we will look at it.
Regards Thomas Linder Puls
PDC
Post Reply