Skip to content

Conversation

@smolkaj
Copy link
Contributor

@smolkaj smolkaj commented Nov 9, 2018

Polymorphic equality raises a runtime exception in some situations, for example when instantiating this module with a Imperative.Digraph.AbstractLabeled graph:

> module G = Graph.Imperative.Digraph.AbstractLabeled(V)(E)
> module L = Graph.Leaderlist.Make(G)
> val g : G.t
> val v : G.V.t
> Leaderlist.leader_lists g v
Uncaught exception:
  
  (Invalid_argument "compare: functional value")

Raised by primitive operation at file "src/leaderlist.ml", line 48, characters 9-17
Called from file "src/leaderlist.ml", line 42, characters 14-17
...

@yakobowski
Copy link
Collaborator

Indeed, thanks!

@yakobowski
Copy link
Collaborator

Merging that one, I will prepare another PR which fixes various other faulty occurrences.

@yakobowski yakobowski merged commit b97aed7 into backtracking:master Nov 9, 2018
@smolkaj
Copy link
Contributor Author

smolkaj commented Nov 9, 2018

That was fast. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants