RX14 changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.19.2 | Fund Crystals development: http://is.gd/X7PRtI | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Logs: http://irclog.whitequark.org/crystal-lang
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Ping timeout: 265 seconds]
<crystal-gh> [crystal] wmoxam opened pull request #3326: [WIP] Adds support for OpenBSD (master...openbsd) https://git.io/viXYJ
<travis-ci> crystal-lang/crystal#ad83832 (master - Compiler: fixed incorret type-flow related to begin/rescue and blocks. Fixes #3324): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/160747656
<DeBot> https://github.com/crystal-lang/crystal/issues/3324 (Variable scoping broken with block and begin/end with rescue clause)
<Papierkorb> C structs are completely broken :(
<Papierkorb> https://play.crystal-lang.org/#/r/1a39 Seems to work with 0.19.1, broken for me locally with 0.19.2
<Papierkorb> Can someone try that code with their installation please?
pawnbox has joined #crystal-lang
ebraga has quit [Ping timeout: 250 seconds]
pawnbox has quit [Ping timeout: 248 seconds]
Philpax has joined #crystal-lang
<wmoxam> Papierkorb: yeah, I get the same
<Papierkorb> "the same"?
<Papierkorb> Thanks. Will open a issue then
<Papierkorb> HEAD is broken too.
<Papierkorb> wmoxam: which crystal version do you have?
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 265 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
onethirtyfive has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
qard has joined #crystal-lang
<wmoxam> Papierkorb: HEAD
snsei has joined #crystal-lang
<wmoxam> I can try on 0.19.2 if you like
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
ponga has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
dhk has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
pawnbox has quit [Ping timeout: 244 seconds]
dhk has quit [Quit: Leaving]
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaun_ has joined #crystal-lang
Oliphaunte has quit [Read error: Connection reset by peer]
kulelu88 has quit [Quit: Leaving]
phase_ has joined #crystal-lang
Oliphaun_ has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 272 seconds]
snsei has quit [Remote host closed the connection]
snsei has joined #crystal-lang
snsei has quit [Ping timeout: 240 seconds]
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
qard has joined #crystal-lang
Philpax has quit [Read error: Connection reset by peer]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
_whitelogger has quit [K-Lined]
_whitelogger has joined #crystal-lang
Philpax has quit [Ping timeout: 255 seconds]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: https://git.io/viX9k
<crystal-gh> crystal/master 25a52af Ary Borenszweig: Small refactor
snsei has quit [Remote host closed the connection]
<travis-ci> crystal-lang/crystal#25a52af (master - Small refactor): The build was fixed. https://travis-ci.org/crystal-lang/crystal/builds/160836597
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 248 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 255 seconds]
<FromGitter> <jwoertink> Hey all, question about the shards `postinstall` script. I have this https://github.com/jwoertink/crystal-icr/blob/feature/shard_postinstall/shard.yml#L10
<FromGitter> <jwoertink> then in another project, I add this icr as a dependency. When I use `path` and point to my local copy, the postinstall runs just fine and everything is awesome
<FromGitter> <jwoertink> however, when I set it to my github repo and that branch, everything installs just fine, but the postinstall doesn't run
<FromGitter> <jwoertink> Is there something in particular when it comes to it being remote?
<FromGitter> <jwoertink> The weird thing is, I could have sworn this worked at some point, but now it's not..
Oliphaunte has joined #crystal-lang
pawnbox has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
<FromGitter> <jwoertink> ok... So I just tried https://github.com/jessedoyle/duktape.cr The postinstall ran just fine from his.. What am I doing wrong with mine?
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Ping timeout: 248 seconds]
globalkeith has joined #crystal-lang
<FromGitter> <jwoertink> interesting... So I just pushed my branch over to master. That was the only thing I saw different. It actually ran my postinstall once I had it set to master branch. However, it still failed
<FromGitter> <jwoertink> ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=57dec7f7df21a75730091ea3]
globalkeith has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Remote host closed the connection]
phase_ has joined #crystal-lang
<FromGitter> <jwoertink> oh... the version...
<FromGitter> <jwoertink> It should be `0.2.10` which my shard.yml specifies https://github.com/jwoertink/crystal-icr/blob/master/shard.yml#L2
phase_ has quit [Client Quit]
<FromGitter> <jwoertink> Anyone know where it would pull that 0.2.8 version from? I made sure to delete `.shards` and `libs` folders.
<FromGitter> <jwoertink> there must be a cache somewhere that looks for the older version
<FromGitter> <sdogruyol> Shard. Lock
<FromGitter> <jwoertink> I deleted that too
<FromGitter> <sdogruyol> Hmm
<FromGitter> <jwoertink> Tried to specify a static version
<FromGitter> <jwoertink> ```dependencies: ⏎ icr: ⏎ github: jwoertink/crystal-icr ⏎ version: "0.2.10"``` [https://gitter.im/crystal-lang/crystal?at=57decc41c8af41d45f266488]
<FromGitter> <jwoertink> Updating https://github.com/jwoertink/crystal-icr.git ⏎ Error resolving icr (0.2.10)
<FromGitter> <jwoertink> ohh.... does it pull this from the releases?
<BlaXpirit> jwoertink, yes, unless u specify branch: master
<FromGitter> <jwoertink> ahhh.. interesting. I assumed branch: master was default. Good to know!
<FromGitter> <jwoertink> Sweet! that worked :smile:
leftylink has quit [*.net *.split]
mose has quit [*.net *.split]
wmoxam has quit [*.net *.split]
fedruantine has quit [*.net *.split]
mose has joined #crystal-lang
fedruantine has joined #crystal-lang
leftylink has joined #crystal-lang
wmoxam has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
[spoiler] has joined #crystal-lang
Oliphaunte has joined #crystal-lang
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
pawnbox has quit [Remote host closed the connection]
pawnbox has joined #crystal-lang
matp has quit [Excess Flood]
soveran has joined #crystal-lang
[spoiler] has quit [Ping timeout: 244 seconds]
[spoiler] has joined #crystal-lang
soveran has quit [Remote host closed the connection]
soveran has joined #crystal-lang
soveran has joined #crystal-lang
soveran has quit [Changing host]
soveran has quit [Remote host closed the connection]
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
phase_ has joined #crystal-lang
soveran has joined #crystal-lang
phase_ has quit [Remote host closed the connection]
qard has joined #crystal-lang
Oliphaunte has joined #crystal-lang
Oliphaunte has quit [Remote host closed the connection]
ponga has quit [Quit: Connection closed for inactivity]
bew78 has joined #crystal-lang
qard has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
pawnbox has quit [Remote host closed the connection]
phase_ has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
qard has joined #crystal-lang
<BlaXpirit> is there any way to obtain a constant from a class, having only an instance?
<BlaXpirit> why are constants so limited ;(
<BlaXpirit> holy smokes this is so bad
<BlaXpirit> i even did a good old `def title : String; {% begin %}{{@type.id}}::TITLE{% end %}; end`
<BlaXpirit> aaand undefined constant Demo+::TITLE
<RX14> BlaXpirit, yeah you need to strip that +
<BlaXpirit> RX14, but it's a subclass, i dont need the base class!
<RX14> ohh
<RX14> that
<RX14> 's
<RX14> interesting
<BlaXpirit> that's my old "override constants" spiel
<BlaXpirit> constants are literally unusable
<RX14> well
<RX14> i wouldn't say literally unusable lol
<BlaXpirit> well, constants in classes
soveran has quit [Remote host closed the connection]
bew78 has quit [Ping timeout: 260 seconds]
spinscale has quit [Remote host closed the connection]
bew78 has joined #crystal-lang
<bew78> Hello, in a lib, is there a way to have default value for some specific parameter ?
<tilpner> For a function?
<bew78> yes
<tilpner> def foo(bar = 42)
<tilpner> If you call foo without an argument, bar will have the value 42.
<bew78> no, in a lib, so: fun foo(bar : Int32 = 42) gives an error on the =
<RX14> ah, no
<RX14> libs are internal and should be wrapped - the default parameter should be in the wrapping function
<tilpner> Oh, that lib.
<bew78> ok, it makes sense, thanks !
pawnbox has joined #crystal-lang
matp has joined #crystal-lang
pawnbox has quit [Ping timeout: 255 seconds]
soveran has joined #crystal-lang
soveran has quit [Ping timeout: 240 seconds]
bjz has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<phase_> What replaced the `X as T` syntax?
<bew78> X.as(T)
<bew78> phase_:
<BlaXpirit> >> 4 as Int64
<DeBot> BlaXpirit: Syntax error in eval:21: unexpected token: as - https://carc.in/#/r/1a77
<phase_> Thanks
<bew78> for a lib, I have a function that accept a FILE*. As in crystal, files are not opened via fopen, how can I get a FILE* ?
soveran has joined #crystal-lang
<BlaXpirit> bew78, oh, well actually i don't think you can get a FILE* , it's a C implementation detail
<BlaXpirit> you probably need to do whatever C does - wrap `fopen` or whatever
soveran has quit [Ping timeout: 265 seconds]
jamie_ca has quit [Remote host closed the connection]
jamie_ca has joined #crystal-lang
pawnbox has joined #crystal-lang
pawnbox has quit [Ping timeout: 265 seconds]
<bew78> I'll do that, thanks
<bew78> BlaXpirit: I'll do that, thanks