rf has quit [Read error: Connection reset by peer]
waleee has quit [Ping timeout: 240 seconds]
leah2 has quit [Server closed connection]
leah2 has joined #ocaml
chrisz_ has quit [Ping timeout: 240 seconds]
chrisz has joined #ocaml
midgard has quit [Server closed connection]
midgard has joined #ocaml
spip has quit [Ping timeout: 240 seconds]
azimut has quit [Ping timeout: 240 seconds]
dh` has quit [Ping timeout: 240 seconds]
Serpent7776 has joined #ocaml
bartholin has joined #ocaml
dh` has joined #ocaml
spip has joined #ocaml
bartholin has quit [Quit: Leaving]
waleee has joined #ocaml
motherfsck has quit [Ping timeout: 240 seconds]
motherfsck has joined #ocaml
waleee has quit [Ping timeout: 240 seconds]
waleee has joined #ocaml
motherfsck has quit [Ping timeout: 246 seconds]
<adrien>
I spotted "bash" and "unit testing" in the history; shell script's error management is too broken, there's no hope
motherfsck has joined #ocaml
bgs has joined #ocaml
motherfsck has quit [Ping timeout: 246 seconds]
motherfsck has joined #ocaml
waleee has quit [Quit: WeeChat 3.8]
neiluj has joined #ocaml
<neiluj>
hey! newbie question about objects: so in this code snippet: https://tpaste.us/Xy9e the syntax is not correct in the EllipticCurve module where I try to extend the meth module with a new method random
<neiluj>
how to extend classes signatures here?
<neiluj>
first it should be inherit t group
<discocaml>
<xavierm02> Given several implementations of the same interface given by OCaml modules, it is (often) possible to define a dynamic implementation of that interface by wrapping the corresponding implementation with each value. When some binary operation of the dynamic implementation act differently depending on whether both operand use the same implementation or not, how should the equality between implementations be done?
<discocaml>
<xavierm02> Here is a toy example where the interface is monoids and the dynamic implementation is the free product of all monoids : https://pastebin.com/1dEAa2ZP
<discocaml>
<xavierm02> Since the polymorphic equality did not seem to work on first-class modules, I added a uid to each of them to be able to test for equality. And I would prefer avoiding the use of `Obj.magic`, but I'm not sure how to do that
<discocaml>
<xavierm02> Given several implementations of the same interface given by OCaml modules, it is (often) possible to define a dynamic implementation of that interface by wrapping the corresponding implementation with each value. When some binary operation of the dynamic implementation act differently depending on whether both operand use the same implementation or not, how should the equality between implementations be tested?
<discocaml>
<octachron> @xavierm02 , you can use an extensive variant to rediscover identity.
<discocaml>
<octachron> neiluj: see the manual object chapter about object types (inheritance is for code reuse in implementation not for types).
<neiluj>
thanks octachron!
bartholin has joined #ocaml
trillion_exabyte has quit [Ping timeout: 240 seconds]
azimut has joined #ocaml
neiluj has quit [Quit: WeeChat 3.8]
Tuplanolla has joined #ocaml
wingsorc has quit [Remote host closed the connection]