FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log inLog in 


Object initialization problem

Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog
View previous topic :: View next topic  
Author Message
Martin Meyer



Frankfurt a.M., Germany
Joined: 14 Nov 2002
Posts: 218

PostPosted: 30 Jan 2017 19:39    Post subject: Object initialization problem Reply with quote

Hello Thomas,

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

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
Back to top
View user's profile Send private message
Thomas Linder Puls



Copenhagen, Denmark
Joined: 28 Feb 2000
Posts: 3094

PostPosted: 31 Jan 2017 11:26    Post subject: Reply with quote

Thank you, we will look at it.
_________________
Regards Thomas Linder Puls
Prolog Development Center
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    discuss.visual-prolog.com Forum Index -> Visual Prolog All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum