Update fixnums documentation to suggest require'ing only fixnum-related parts of racket/unsafe/ops and not the rest of unsafe ops.

This commit is contained in:
Dominik Pantůček 2019-12-16 10:20:43 +01:00 committed by Sam Tobin-Hochstadt
parent 07f060133c
commit 58cfb6654a

View File

@ -25,7 +25,9 @@ code where the @racket[require] of @racketmodname[racket/fixnum] is
replaced with
@racketblock[(require (filtered-in
(λ (name) (regexp-replace #rx"unsafe-" name ""))
(λ (name)
(and (regexp-match #rx"^unsafe-fx" name)
(regexp-replace #rx"unsafe-" name "")))
racket/unsafe/ops))]
to drop in unsafe versions of the library. Alternately, when