Is there an easy way to mimic generics with an accept method of a visitor pattern?
Mina
minallkamel at gmail.com
Thu Feb 18 15:10:55 UTC 2021
On Thursday, 18 February 2021 at 13:53:19 UTC, Paul Backus wrote:
> Another possibility is to use discriminated unions and
> tag-based dispatch (i.e., switch statements) instead of classes
> and virtual method dispatch. This would make it a bit harder to
> follow the book, but might be a better learning experience if
> you're up for a challenge.
Thanks for the reply.
More information about the Digitalmars-d-learn
mailing list