Hi Klaus,
For what it’s worth, AspectScheme, which needs the call stack to express
control flow related pointcuts, redefines the #%app macro to reify the parts of
the call stack that you need using continuation marks.
I doubt there is a way other than that one to reify the call stack, but if
be because it can introduce and internal definition context).
>
> Your student’s program has the same behavior as this program without the
> begin, since the let also introduces a definition context:
>
> (let ([y 5])
> (display y)
> (define y 10)
> y)
> On Nove
Hi all,
Some of my creative students came up with the following:
(let ([y 5])
(begin
(display y)
(define y 10)
y)))
which raises a mysterious
y: undefined;
cannot use before initialization
I remember earlier discussion on this list about the fact that `define' was
somehow “broken”
020, at 6:25 PM, Éric Tanter wrote:
>
> Just to complement: I’m editing some scribble I wrote years ago and I
> completely forgot why I was doing that, but to be able to use
> `(code:highlight …)` in code blocks, I had to add the following line (where
> `ex-eval` is
(code:hilite v) v) ]
```
sorry if that’s confusing, but I’m confused ;-)
I just want a way to highlight any bits in a code block, in order to bring the
reader’s attention to specific places (could be binders, whole expressions,
etc.).
Thanks!
— Éric
> On Aug 22, 2020, at 6:15 PM, Éric Tanter wr
Hi,
>From the doc: `(code:hilite datum)` typesets like `datum`, but with a
>background highlight.
However, it does not work to highlight a binder, eg: `(letrec ([(code:hilite
self) …]) …)`
Is there another way to highlight a binder?
Thanks,
— Éric
--
You received this message because
too (but my memory is foggy) and what I did was
> have a macro that expands into `code` and also expands into the actual code
> but walks over the code and drops things like code:hilite and code:comment.
>
> Robby
>
>
>> On Sun, Aug 23, 2020 at 9:23 AM Éric Tanter
Hi,
I’d like to use the Racket macro expander to translate programs from a given
source language to a target language (both scheme-ish).
However, the expansion that `raco expand` does is too violent for my
purposes---I would need a way to specify macro hiding (as in the macro
stepper), in
; and shows its expansion with the given hiding policy (discarding hygiene
> information---beware).
>
> usage: racket expand.rkt < your-example-file.rkt
>
> Ryan
>
>
> On 8/10/20 3:44 PM, Éric Tanter wrote:
>> Hi,
>> I’d like to use the Racket macro expander
9 matches
Mail list logo