Object initialization problem

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

Object initialization problem

Unread post by Martin Meyer » 30 Jan 2017 19:39

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: 1622
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 31 Jan 2017 11:26

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

Post Reply