Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow #f as a valid source location #99

Merged
merged 1 commit into from Mar 21, 2014
Merged

Allow #f as a valid source location #99

merged 1 commit into from Mar 21, 2014

Conversation

jpolitz
Copy link
Contributor

@jpolitz jpolitz commented Jun 27, 2013

The documentation for srclocs says that (or/c #f natural) are appropriate arguments. This commit adds a checker for that contract and changes the checkers on srcloc to use that instead.

http://docs.racket-lang.org/reference/exns.html#%28def._%28%28lib._racket%2Fprivate%2Fbase..rkt%29._srcloc%29%29

(Noticed because Pyret has a few "dummy" positions with #f locations, which threw a runtime error from Whalesong-compiled Pyret.)

dyoo added a commit that referenced this pull request Mar 21, 2014
Allow #f as a valid source location
@dyoo dyoo merged commit 60a7079 into dyoo:master Mar 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants