Question regarding D v.0110

Basile B. b2.temp at gmx.com
Sat Jul 11 09:51:57 UTC 2020


On Saturday, 11 July 2020 at 09:37:42 UTC, Remi wrote:
> Hello all,
>
> I found source code for an old game written in D, I'm talking 
> circa 2004 here. It seems like it was written against D v0.110 
> according to the documentation I found.
>
> My project is to modernise it, maybe make it multiplatform, or 
> even compile to wasm and browser based. But first, I'm trying 
> to compile it as is and I found something odd.
>
>>  [...]
>
> Trying to compile this, it complains about:
>
>> [...]
>
> This is from the line with "if (ofs !>= 0)".
>
> Would anyone know what this operator was for back in v0.110? 
> I'm assuming it's been removed some time ago...
>
> Thanks, Remi.

It's lesser, i.e "<". The code in itself looks like a 
wrap(0.0,0.99).
Maybe 0.99 and not 1 is because of FP comparison ?


More information about the Digitalmars-d mailing list