Scryer-prolog: sleep/1: representation error needed

Created on 20 Apr 2020  路  2Comments  路  Source: mthom/scryer-prolog

?- X is 2^128, sleep(X).
caught: domain_error(not_great_than_0xfffffffffffffbff,340282366920938463463374607431768211456)

This should be a representation error. There is no inherent reason why 0xfffffffffffffbff should be a limit - except that in current systems a larger number does not make sense/cannot be represented.

Most helpful comment

Made a PR to fix it.

All 2 comments

Made a PR to fix it.

@notoria: max_sleep_time fits nicely into error class f.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

notoria picture notoria  路  3Comments

mkohlhaas picture mkohlhaas  路  3Comments

XVilka picture XVilka  路  3Comments

cduret picture cduret  路  4Comments

triska picture triska  路  4Comments