Re: mir.algebraic: Visitor cannot be called

2020-12-09 Thread Andre Pany via Digitalmars-d-learn
On Thursday, 10 December 2020 at 05:49:12 UTC, 9il wrote: On Wednesday, 9 December 2020 at 14:34:18 UTC, Andre Pany wrote: [...] For .member access mir.algebraic checks at compile time that all underlying types (except typeof(null)) can be called with provided arguments. It is kind of API

Re: mir.algebraic: Visitor cannot be called

2020-12-09 Thread 9il via Digitalmars-d-learn
On Wednesday, 9 December 2020 at 14:34:18 UTC, Andre Pany wrote: Hi, I want to port some Python coding and try have as much similiar coding as possible. I thought I can have a mir variant which stores either class A or B and I can call at runtime a method like this: ``` /+ dub.sdl:

mir.algebraic: Visitor cannot be called

2020-12-09 Thread Andre Pany via Digitalmars-d-learn
Hi, I want to port some Python coding and try have as much similiar coding as possible. I thought I can have a mir variant which stores either class A or B and I can call at runtime a method like this: ``` /+ dub.sdl: name "app" dependency "mir-core" version="1.1.51" +/