You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@epatters, we previously discussed the case where an instance already defines the term constructor methods from the theory. I think we wanted the @instance macro to give a warning if you didn't define it in the instance. The current behavior I am seeing on Catlab v0.6 is that if you don't define the method (for example compose) you get an error when you evaluate the @instance macro that says the instance does not define the compose function. But if you do define it as
@epatters, we previously discussed the case where an instance already defines the term constructor methods from the theory. I think we wanted the
@instance
macro to give a warning if you didn't define it in the instance. The current behavior I am seeing on Catlab v0.6 is that if you don't define the method (for examplecompose
) you get an error when you evaluate the@instance
macro that says the instance does not define thecompose
function. But if you do define it asyou get a runtime error of method ambiguity, because Julia doesn't know if you want to call
Main.compose(f,g)
orOpenPetris.compose(f,g)
.Is this a user error, or did we not resolve this?
The text was updated successfully, but these errors were encountered: