You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error function is guaranteed to always terminate the process rather than returning.
Therefore, it should be declared as returning 'a (that is, *anything*) rather than
unit. This means it can be called in e.g. conditional branches where values would otherwise
be required. I see that the last line of the error function is call to Pervasives.exit
(in the manual exit's return type is declared as 'a I believe for this exact reason)
so this is a change to interface only that doesn't require any changes to the implementation.
Reported by headch on 2010-09-02 02:37:48
The text was updated successfully, but these errors were encountered:
Originally reported on Google Code with ID 18
Reported by
headch
on 2010-09-02 02:37:48The text was updated successfully, but these errors were encountered: