asterite changed the topic of #crystal-lang to: #crystal-lang The Crystal programming language | http://crystal-lang.org | Crystal 0.6.1 | Paste > 3 lines of text to https://gist.github.com | GH: https://github.com/manastech/crystal - Docs: http://crystal-lang.org/docs/ - API: http://crystal-lang.org/api/ - Logs: http://irclog.whitequark.org/crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
rpag has quit [Ping timeout: 250 seconds]
<travis-ci> manastech/crystal#2246 (master - d7c311c : Ary Borenszweig): The build failed.
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
bcardiff has quit [Quit: Leaving.]
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/vv7r5
<crystal-gh> crystal/master 315401d Ary Borenszweig: Fix String#split(Regex)
<travis-ci> manastech/crystal#2247 (master - 315401d : Ary Borenszweig): The build is still failing.
havenwood has joined #crystal-lang
ponga has joined #crystal-lang
ponga has quit [Ping timeout: 252 seconds]
ryanf_ is now known as ryanf
havenwood has quit []
Flaise has quit [Quit: Leaving.]
DerisiveLogic has quit [Ping timeout: 248 seconds]
markhend has joined #crystal-lang
harisamin has joined #crystal-lang
markhend has quit [Quit: Page closed]
ponga has joined #crystal-lang
ponga has quit [Remote host closed the connection]
ponga has joined #crystal-lang
a5i has quit [Quit: Connection closed for inactivity]
ponga has quit [Client Quit]
ponga has joined #crystal-lang
ponga has quit [Quit: Leaving...]
ponga has joined #crystal-lang
BlaXpirit has joined #crystal-lang
ponga has quit [Remote host closed the connection]
ponga has joined #crystal-lang
BlaXpirit has quit [Quit: Quit Konversation]
ponga has quit [Remote host closed the connection]
canhtak has joined #crystal-lang
BlaXpirit has joined #crystal-lang
ponga has joined #crystal-lang
wanderer_ has joined #crystal-lang
canhtak has quit [Quit: canhtak]
canhtak has joined #crystal-lang
ponga has quit [Quit: Leaving...]
harisamin has quit [Remote host closed the connection]
canhtak has quit [Quit: canhtak]
ponga has joined #crystal-lang
DerisiveLogic has joined #crystal-lang
JBat has joined #crystal-lang
wanderer_ has quit [Ping timeout: 246 seconds]
BlaXpirit has quit [Quit: Quit Konversation]
BlaXpirit has joined #crystal-lang
bcardiff has joined #crystal-lang
a5i has joined #crystal-lang
havenwood has joined #crystal-lang
ismaelga has joined #crystal-lang
<BlaXpirit> CrSFML is moving along well.
<BlaXpirit> one current issue I have is enums don't work through an alias to lib. can't replace https://github.com/BlaXpirit/crsfml/blob/28ec150/examples/simple.cr#L5 with SF:: although https://github.com/BlaXpirit/crsfml/blob/28ec150/src/csfml/window.cr#L196
<BlaXpirit> the thing that's bitten me the most so far is that 0 is true
<BlaXpirit> now it's time for some non-automated work. jhass, I lost this one http://irclog.whitequark.org/crystal-lang/2015-04-17#12452394
<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
<a5i> >> Time.now.month
<DeBot> a5i: 4
<a5i> >> Time.now.month-1
<DeBot> a5i: 3
<BlaXpirit> thanks, jhass. you said something about "break". how does that work?
<BlaXpirit> inside that do-block somehow break works?
<jhass> the do-block is called just block
<jhass> loop is simply defined to be def loop; while true; yield; end; end;
<jhass> so it just endlessly calling the passed block
<jhass> break inside a block returns from the method that invoked the block
<jhass> let me illustrate, that should be a bit clearer
<BlaXpirit> i think i understand
<jhass> >> def foo; yield 1; 3; end; foo {|n| n+1 }
<DeBot> jhass: 3
<jhass> >> def foo; yield 1; 3; end; foo {|n| break n+1 }
<DeBot> jhass: 2
<BlaXpirit> good. thanks.
<jhass> so break is like return inside the method that invoked the block
<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
<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
<BlaXpirit> right
<BlaXpirit> how to generate docs for my lib?
<BlaXpirit> i mean, i see mentions of it, but no instructions
<a5i> BlaXpirit: RUN CRYSTAL DOCS
<a5i> srry caps
<BlaXpirit> oh ok. it did something.
<BlaXpirit> omg [view source] goes to github
<a5i> :D
<a5i> Guys, I'm having second thoughts on continuing this project idea :(
<jhass> "this"?
ponga has quit [Remote host closed the connection]
BlaXpirit has quit [Read error: Connection reset by peer]
BlaXpirit has joined #crystal-lang
DerisiveLogic has quit [Remote host closed the connection]
canhtak has joined #crystal-lang
wanderer_ has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
ismaelga has quit [Ping timeout: 245 seconds]
canhtak has quit [Quit: canhtak]
ponga has joined #crystal-lang
ponga has quit [Ping timeout: 252 seconds]
wanderer_ has quit [Quit: Page closed]
<BlaXpirit> is it possible for a function to modify one of its arguments?
<BlaXpirit> is it possible to add methods to C/lib struct?
<jhass> 1) depends, if it descends from Reference, it's passed by reference, if it descends from Value, it's passed by value
<jhass> 2) we gotta have to try it out
ismaelga has joined #crystal-lang
<jhass> doesn't look like 2 is possible
<BlaXpirit> :/
<BlaXpirit> well i really, really don't want to wrap structs
<jhass> I'm pretty sure we at least have a discussion going about allowing fun definitions in lib, can't find though :/
ponga has joined #crystal-lang
ponga has quit [Ping timeout: 256 seconds]
havenwood has quit [Remote host closed the connection]
ismaelga has quit [Remote host closed the connection]
ismaelga has joined #crystal-lang
ismaelga has quit [Remote host closed the connection]
ponga has joined #crystal-lang
ponga has quit [Ping timeout: 245 seconds]
DerisiveLogic has joined #crystal-lang
<BlaXpirit> ok, CrSFML should be usable. gonna pause working on it for a while. thanks for help.
<jhass> awesome, thanks for contributing to the community!
ponga has joined #crystal-lang
ponga has quit [Ping timeout: 272 seconds]
Flaise has joined #crystal-lang
JBat has quit [Quit: Computer has gone to sleep.]
havenwood has joined #crystal-lang
DerisiveLogic has quit [Ping timeout: 250 seconds]
waterlink has joined #crystal-lang
ponga has joined #crystal-lang
waterlink has quit [Quit: Leaving.]
waterlink has joined #crystal-lang
ponga has quit [Ping timeout: 265 seconds]
BlaXpirit has quit [Quit: Quit Konversation]
<a5i> jhass, is the the bot running on HEAD ?