Problem with comparing the null-character

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

Problem with comparing the null-character

Unread post by Martin Meyer » 27 Sep 2015 23:37

Hello Thomas,

please have a look at this. It outputs "greater" (in build 7501).

Regards
Martin

Code: Select all

interface obj{@Type}     properties         value : @Type (o). end interface obj   class obj{@Type} : obj{@Type}     constructors         new : (@Type). end class obj   implement obj{@Type}     facts         value : @Type.     clauses         new(Value) :-             value := Value. end implement obj   %---   implement main   clauses     run() :-         Obj = obj::new('\u0000'),         stdIo::write(compare(Obj:value, '\u0000')).   end implement main

User avatar
Thomas Linder Puls
VIP Member
Posts: 2422
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 28 Sep 2015 8:30

This looks like a bug. We will investigate it.
Regards Thomas Linder Puls
PDC

User avatar
Thomas Linder Puls
VIP Member
Posts: 2422
Joined: 28 Feb 2000 0:01

Unread post by Thomas Linder Puls » 24 Nov 2015 14:17

This fixed in build 7502.
Regards Thomas Linder Puls
PDC

Post Reply