Discussions related to Visual Prolog
Martin Meyer
VIP Member
Posts: 330 Joined: 14 Nov 2002 0:01
Unread post
by Martin Meyer » 16 Feb 2015 10:20
Hello Thomas,
please have a look at below construct. It does not compile (in build 7501).
Regards
Martin
Code: Select all
interface obj1{ @Type1 }
properties
value : @Type1 .
end interface obj1
%---
interface obj2{ @Type2 }
properties from obj1{ @Type2 }
value
end interface obj2
%---
interface obj3{ @Type3 }
properties from obj2{ @Type3 }
value
end interface obj3
Thomas Linder Puls
VIP Member
Posts: 1418 Joined: 28 Feb 2000 0:01
Unread post
by Thomas Linder Puls » 16 Feb 2015 11:33
It is a bug, thank you for reporting it.
You can however without any loss take the property from obj1 instead.
Code: Select all
interface obj3{ @Type3 }
properties from obj1{ @Type3 }
value
end interface obj3
(It may also be clearer to readers of the code to have the "direct" property, instead of an indirect one).
Regards Thomas Linder Puls
PDC