Page 1 of 1

Problem with comparing the null-character

Posted: 27 Sep 2015 23:37
by Martin Meyer
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

Posted: 28 Sep 2015 8:30
by Thomas Linder Puls
This looks like a bug. We will investigate it.

Posted: 24 Nov 2015 14:17
by Thomas Linder Puls
This fixed in build 7502.