The Mediator Design Pattern in OCaml -
I am trying to complete a mutual bond between two classes in OCaml (a la intermediate pattern) and compile I'm getting an error on
Error: Class constructor associate is expected to have 1 type of argument (argument), but here it is applied to 0 types of arguments.
I can not say that I am in the definition of class ['Fu'] all people familiar with syntax, but in the context of all associates and each associate in the context of trying to keep reference to their respective intermediaries (It has no use) Importance of class definition in source code How can I allow colleagues to keep reference of their intermediary?
I have all the compilation problems. When you have inherited a colleague, you need to provide it type parameter. As a result, I think concrete collegal also requires a type parameter. Also, you have forgotten to pass constructor logic MIN in the inherited class. And I added guards like my type guard to use the type of object.
However, I am not familiar with the mediator model, so I'm not sure what is the correct way to implement intermediate patterns. Are you sure you need objects and virtual classes and accessories?
Comments
Post a Comment