00:01
BlaXpirit has quit [Quit: Quit Konversation]
00:04
rpag has quit [Ping timeout: 250 seconds]
00:05
<
travis-ci >
manastech/crystal#2246 (master - d7c311c : Ary Borenszweig): The build failed.
00:41
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
00:57
bcardiff has quit [Quit: Leaving.]
01:41
<
crystal-gh >
crystal/master 315401d Ary Borenszweig: Fix String#split(Regex)
01:49
<
travis-ci >
manastech/crystal#2247 (master - 315401d : Ary Borenszweig): The build is still failing.
02:18
havenwood has joined #crystal-lang
02:42
ponga has joined #crystal-lang
03:17
ponga has quit [Ping timeout: 252 seconds]
03:47
ryanf_ is now known as ryanf
03:57
havenwood has quit []
04:26
Flaise has quit [Quit: Leaving.]
04:32
DerisiveLogic has quit [Ping timeout: 248 seconds]
04:48
markhend has joined #crystal-lang
05:04
harisamin has joined #crystal-lang
05:23
markhend has quit [Quit: Page closed]
05:31
ponga has joined #crystal-lang
05:42
ponga has quit [Remote host closed the connection]
05:42
ponga has joined #crystal-lang
05:43
a5i has quit [Quit: Connection closed for inactivity]
05:46
ponga has quit [Client Quit]
05:49
ponga has joined #crystal-lang
06:11
ponga has quit [Quit: Leaving...]
06:14
ponga has joined #crystal-lang
06:17
BlaXpirit has joined #crystal-lang
06:22
ponga has quit [Remote host closed the connection]
06:24
ponga has joined #crystal-lang
06:32
BlaXpirit has quit [Quit: Quit Konversation]
06:56
ponga has quit [Remote host closed the connection]
07:09
canhtak has joined #crystal-lang
07:53
BlaXpirit has joined #crystal-lang
07:53
ponga has joined #crystal-lang
07:59
wanderer_ has joined #crystal-lang
08:08
canhtak has quit [Quit: canhtak]
08:10
canhtak has joined #crystal-lang
08:36
ponga has quit [Quit: Leaving...]
09:12
harisamin has quit [Remote host closed the connection]
10:35
canhtak has quit [Quit: canhtak]
11:29
ponga has joined #crystal-lang
11:41
DerisiveLogic has joined #crystal-lang
12:01
JBat has joined #crystal-lang
12:26
wanderer_ has quit [Ping timeout: 246 seconds]
13:12
BlaXpirit has quit [Quit: Quit Konversation]
13:14
BlaXpirit has joined #crystal-lang
13:19
bcardiff has joined #crystal-lang
14:20
a5i has joined #crystal-lang
14:36
havenwood has joined #crystal-lang
15:17
ismaelga has joined #crystal-lang
15:57
<
BlaXpirit >
CrSFML is moving along well.
15:58
<
BlaXpirit >
the thing that's bitten me the most so far is that 0 is true
16:03
<
jhass >
BlaXpirit:
http://paste.mrzyx.de/p7svvdztp took the chance to rework it slightly, no idea if that really makes sense for the API though, but should give an idea or two
16:03
<
a5i >
>> Time.now.month
16:03
<
a5i >
>> Time.now.month-1
16:04
<
BlaXpirit >
thanks, jhass. you said something about "break". how does that work?
16:05
<
BlaXpirit >
inside that do-block somehow break works?
16:07
<
jhass >
the do-block is called just block
16:07
<
jhass >
loop is simply defined to be def loop; while true; yield; end; end;
16:08
<
jhass >
so it just endlessly calling the passed block
16:08
<
jhass >
break inside a block returns from the method that invoked the block
16:08
<
jhass >
let me illustrate, that should be a bit clearer
16:09
<
BlaXpirit >
i think i understand
16:09
<
jhass >
>> def foo; yield 1; 3; end; foo {|n| n+1 }
16:09
<
jhass >
>> def foo; yield 1; 3; end; foo {|n| break n+1 }
16:09
<
BlaXpirit >
good. thanks.
16:09
<
jhass >
so break is like return inside the method that invoked the block
16:10
<
jhass >
there's also next that is like return for the block only, that is if you view the block like a method, next is return
16:10
<
jhass >
since a lot of Crystals (and Rubys where it inherited those from) loop constructs are based on a method calling a block multiple time, these names make sense
16:11
<
BlaXpirit >
how to generate docs for my lib?
16:12
<
BlaXpirit >
i mean, i see mentions of it, but no instructions
16:12
<
a5i >
BlaXpirit: RUN CRYSTAL DOCS
16:13
<
BlaXpirit >
oh ok. it did something.
16:14
<
BlaXpirit >
omg [view source] goes to github
16:15
<
a5i >
Guys, I'm having second thoughts on continuing this project idea :(
16:35
ponga has quit [Remote host closed the connection]
17:04
BlaXpirit has quit [Read error: Connection reset by peer]
17:05
BlaXpirit has joined #crystal-lang
17:14
DerisiveLogic has quit [Remote host closed the connection]
17:20
canhtak has joined #crystal-lang
17:22
wanderer_ has joined #crystal-lang
17:29
ismaelga has quit [Remote host closed the connection]
17:31
ismaelga has joined #crystal-lang
17:35
ismaelga has quit [Ping timeout: 245 seconds]
17:35
canhtak has quit [Quit: canhtak]
17:36
ponga has joined #crystal-lang
17:40
ponga has quit [Ping timeout: 252 seconds]
17:41
wanderer_ has quit [Quit: Page closed]
17:56
<
BlaXpirit >
is it possible for a function to modify one of its arguments?
17:57
<
BlaXpirit >
is it possible to add methods to C/lib struct?
17:59
<
jhass >
1) depends, if it descends from Reference, it's passed by reference, if it descends from Value, it's passed by value
17:59
<
jhass >
2) we gotta have to try it out
18:00
ismaelga has joined #crystal-lang
18:00
<
jhass >
doesn't look like 2 is possible
18:00
<
BlaXpirit >
well i really, really don't want to wrap structs
18:04
<
jhass >
I'm pretty sure we at least have a discussion going about allowing fun definitions in lib, can't find though :/
18:36
ponga has joined #crystal-lang
18:41
ponga has quit [Ping timeout: 256 seconds]
18:42
havenwood has quit [Remote host closed the connection]
19:02
ismaelga has quit [Remote host closed the connection]
19:02
ismaelga has joined #crystal-lang
19:13
ismaelga has quit [Remote host closed the connection]
19:37
ponga has joined #crystal-lang
19:41
ponga has quit [Ping timeout: 245 seconds]
19:43
DerisiveLogic has joined #crystal-lang
20:05
<
BlaXpirit >
ok, CrSFML should be usable. gonna pause working on it for a while. thanks for help.
20:06
<
jhass >
awesome, thanks for contributing to the community!
20:38
ponga has joined #crystal-lang
20:43
ponga has quit [Ping timeout: 272 seconds]
21:05
Flaise has joined #crystal-lang
21:26
JBat has quit [Quit: Computer has gone to sleep.]
21:41
havenwood has joined #crystal-lang
21:46
DerisiveLogic has quit [Ping timeout: 250 seconds]
22:10
waterlink has joined #crystal-lang
22:54
ponga has joined #crystal-lang
22:55
waterlink has quit [Quit: Leaving.]
22:56
waterlink has joined #crystal-lang
22:58
ponga has quit [Ping timeout: 265 seconds]
23:14
BlaXpirit has quit [Quit: Quit Konversation]
23:22
<
a5i >
jhass, is the the bot running on HEAD ?