robert-strandh / SICL

A fresh implementation of Common Lisp
Other
1.07k stars 79 forks source link

Check the *READ-DEFAULT-FLOAT-FORMAT* variable in the simple reader. #92

Closed dan-robertson closed 7 years ago

dan-robertson commented 7 years ago

This checks that the variable holds a suitable value before trying to use it. If the variable is not set to one of the types allowed by the spec, we check if it is a subtype of float (as implementation-specific behaviour is allowed) and if it is not then we signal an error.