Skip to content

Commit 01f83e6

Browse files
committed
use latest rhombus additions to remove any static dependency on rhombus
1 parent b9e9123 commit 01f83e6

File tree

3 files changed

+13
-21
lines changed

3 files changed

+13
-21
lines changed

redex-doc/redex/scribblings/ref/typesetting.scrbl

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,14 @@ picts inline in the paper. For producing
7171
papers with LaTeX, create @filepath{.ps} files from the picts with Redex,
7272
which 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

redex-pict-lib/redex/private/pict-interface.rkt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff 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"

redex-pict-lib/redex/private/rhombus-bridge.rkt

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)