e can
easily reuse it in other traits without worrying about name colliding (the
name `helper` is very commonly used, imo) .
2. Compared with the "renaming" solution, "hiding" looks more "hygienic",
because it can avoid further name colliding.
PS: I admit this example ma
the *name* of the auxiliary
> hook method, using `define-member-name` etc. That avoids the problem of
> needing the same *name* to refer to different "slots" at different points
> in time; instead, just use two different names
>
Nice.
Racket supports parameterizing identifiers
acket that can simulate the semantics of MIXEDJAVA ?
Thanks.
Best regards,
Siyuan Chen
On Tue, Aug 11, 2020 at 10:09 PM Ryan Culpepper
wrote:
> I don't know of a way to solve that problem using the Racket class system
> alone, but here is a solution that uses traits instead, which allow you
behavior of
MIXEDJAVA, but I don't know how to do it.
Notice that in the paper, "Super and Inner — Together at Last!" by David S.
Goldberg, Robert Bruce Findler and Matthew Flatt, the authors originally
used `beta` and `java` to mark the methods, no need `pubment` a method
first. In that model,
o 5)])
'(make-Just (+ x y
```
I was surprised that it works.
PS: The code above can be compiled and run in guile 2.2.3.
You can test it at https://rextester.com/l/scheme_online_compiler, if
someone interested,
Best regards,
Siyuan Chen
On Mon, Jun 8, 2020 at 12:23 AM Jens Axel Søgaard
wr
`namespace-set-variable-value!` is a mutable function which is not suitable
as well.
Could someone give me some advice?
Or we can modify the code above to make it work in Racket.
Very thanks.
Best regards,
Siyuan Chen
--
You received this message because you are subscribed to the Google Groups
"
Dear George,
I have just found a way to solve this problem.
Use (current-output-port out).
But still very thank you.
On Tue, Apr 2, 2019 at 1:30 AM George Neuner wrote:
>
> On 4/1/2019 1:09 PM, Siyuan Chen wrote:
> > Dear George,
> >
> > This means we must
7 matches
Mail list logo