[Pas2js] Strict ordinal types

Michael Van Canneyt michael at freepascal.org
Tue Jan 16 08:18:59 CET 2018



On Mon, 15 Jan 2018, gabor wrote:

> Hello!
>
> Could ordinal types be more strict? For example adding var i: byte = 
> 200; ... i:=i+100; will result in i=44 instead of i=300.
> I know it will affect performance, but it could be controlled by 
> compiler directive.

That seems like a good idea to me, can you please post a feature request for this in the
FPC bugtracker, under the pas2js project ? So we will not forget about this.


Michael.


More information about the Pas2js mailing list