File tree Expand file tree Collapse file tree 3 files changed +13
-21
lines changed
redex-doc/redex/scribblings/ref
redex-pict-lib/redex/private Expand file tree Collapse file tree 3 files changed +13
-21
lines changed Original file line number Diff line number Diff line change @@ -71,10 +71,14 @@ picts inline in the paper. For producing
7171papers with LaTeX, create @filepath{.ps} files from the picts with Redex,
7272which can be included into a LaTeX document.
7373
74- Redex picts can also be used with
75- @seclink["top " #:doc '(lib "rhombus/pict/scribblings/rhombus-pict.scrbl " ) #:indirect? #t ]{Rhombus's
76- pict library}. When the Rhombus library is installed, Redex creates Rhombus picts and
77- when it is not installed, Redex creates Racket picts.
74+ Redex picts can also be used with the
75+ @seclink["top " #:doc '(lib "rhombus/pict/scribblings/rhombus-pict.scrbl " ) #:indirect? #t ]{
76+ Rhombus's pict library}. When the Rhombus library is installed, Redex
77+ creates Rhombus picts and when it is not installed, Redex
78+ creates Racket picts. Rhombus picts are
79+ @tech[#:doc '(lib "pict/scribblings/pict.scrbl " )]{pict
80+ convertible}, however, so Rhombus picts can be used whenever the Racket library
81+ picts are expected.
7882
7983@section{Generating Picts}
8084
Original file line number Diff line number Diff line change @@ -250,6 +250,8 @@ pict library.
250250 [(rhombus-present?)
251251 (define rhombus-dynamic-require
252252 (dynamic-require 'rhombus/dynamic-require 'rhombus-dynamic-require ))
253+ (define rhombus-dynamic-require-predicate
254+ (dynamic-require 'rhombus/dynamic-require 'rhombus-dynamic-require-predicate ))
253255 (define dynamic-dot-ref
254256 (dynamic-require 'rhombus/dot 'dynamic-dot-ref ))
255257 (define r:from_handle
@@ -259,13 +261,11 @@ pict library.
259261 ((dynamic-dot-ref (r:Find sub #:horiz h #:vert v)
260262 'in )
261263 pict))
264+ (define r:is_pict
265+ (rhombus-dynamic-require-predicate '(lib "rhombus/pict.rhm " ) 'Pict ))
262266 (values Find
263267 r:from_handle
264- (parameterize ([current-namespace ns])
265- (namespace-require '(all-except rhombus #%top ))
266- (namespace-require 'rhombus/parse )
267- (namespace-require 'redex/private/rhombus-bridge )
268- (eval 'is_pict )))]
268+ r:is_pict)]
269269 [else
270270 (values "dummy value that's not rhombus's find "
271271 "dummy value that's not rhombus's find_handle "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments