Stephie has quit [Read error: Connection reset by peer]
Vexatos has quit [Ping timeout: 240 seconds]
Vexatos has joined #crystal-lang
Stephie has joined #crystal-lang
_ht has joined #crystal-lang
<FromGitter>
<3n-k1> compling this in 0.35.1 fails ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ `Error: fun redefinition with different signature (was `fun dlopen(file : ::Pointer(Char), mode : Int) : ::Pointer(Void)` at /var/lib/snapd/snap/crystal/397/share/crystal/src/lib_c/x86_64-linux-gnu/c/dlfcn.cr:18:3)` ... [https://gitter.im/crystal-lang/crystal?at=5ffadf2dfb85d46e04d22d35]
<FromGitter>
<3n-k1> oh it's already defined
<FromGitter>
<3n-k1> i missed the "cr" and thought it was just "c" :p
alexherbo2 has joined #crystal-lang
ua_ has joined #crystal-lang
ua has quit [Ping timeout: 264 seconds]
Volk has joined #crystal-lang
sorcus has quit [Quit: WeeChat 3.0]
sorcus has joined #crystal-lang
HumanG33k has quit [Quit: Leaving]
HumanG33k has joined #crystal-lang
hightower2 has quit [Ping timeout: 256 seconds]
<FromGitter>
<watzon> Yeah unfortunately you can't overwrite lib definitions
alexherbo2 has quit [Quit: Ping timeout (120 seconds)]
alexherbo2 has joined #crystal-lang
alexherbo21 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 264 seconds]
alexherbo21 is now known as alexherbo2
Volk has quit [Quit: See you next time!]
<FromGitter>
<Daniel-Worrall> Why unfortunately? What's the problem with just calling the original one?
<FromGitter>
<watzon> If the original one is poorly defined it could take waiting for a PR to get merged before you can move past it
<FromGitter>
<Daniel-Worrall> Hm, can you give an example on how a binding could be poorly defined?
<FromGitter>
<Daniel-Worrall> I haven't done any C bindings
<FromGitter>
<watzon> It's pretty easy to mistakenly put incorrect types on a C binding. Or another pretty common thing is to use a `Void*` as a type if you don't want to / don't need to define the corresponding struct, but if someone else did want that struct in their library and wanted all methods that accept or return that struct to have the proper definition there's currently no way to do that besides copy/pasting all of the lib
<FromGitter>
... definitions into your own project.
_ht has quit [Remote host closed the connection]
<FromGitter>
<watzon> But if you're relying on other things inside of the other project you can't do that, because you'd once again be redefining them
<FromGitter>
<Daniel-Worrall> sweet. gotcha. ty
<FromGitter>
<watzon> No problem. It's an issue I've had a few times lol
Volk has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 256 seconds]
alexherbo2 has joined #crystal-lang
hightower2 has joined #crystal-lang
DeBot has quit [Quit: Crystal IRC]
jhass has quit [Quit: Bye]
asterite has quit [Quit: Bye]
straight-shoota has quit [Quit: ZNC 1.7.5 - https://znc.in]
hightower2 has quit [Ping timeout: 246 seconds]
DeBot has joined #crystal-lang
asterite has joined #crystal-lang
straight-shoota has joined #crystal-lang
jhass has joined #crystal-lang
alexherbo29 has joined #crystal-lang
alexherbo2 has quit [Read error: Connection reset by peer]