Thanks.
Is there an easy way to mimic generics with an accept method of a visitor pattern?
Mina via Digitalmars-d-learn Thu, 18 Feb 2021 03:15:39 -0800
I'm following along with the crafting interpreters book
(https://craftinginterpreters.com) and it goes into implementing
a visitor pattern that returns generic types, so implementing it
in D came down to the accept method causing undefined symbol
error that goes away when changing it to returning a concrete
type, so here's what I've got working
(https://github.com/MKamelll/dlox/blob/main/source/loxast.d) and
here's the book's implementation
(https://github.com/munificent/craftinginterpreters/blob/master/java/com/craftinginterpreters/lox/Expr.java).
- Is there an easy way to mimic generics... Mina via Digitalmars-d-learn
- Re: Is there an easy way to mimic... Paul Backus via Digitalmars-d-learn
- Re: Is there an easy way to m... vitamin via Digitalmars-d-learn
- Re: Is there an easy way ... Paul Backus via Digitalmars-d-learn
- Re: Is there an easy ... vitamin via Digitalmars-d-learn
- Re: Is there an ... Paul Backus via Digitalmars-d-learn
- Re: Is there... vitamin via Digitalmars-d-learn
- Re: Is there an easy way to m... Mina via Digitalmars-d-learn