jhass changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.5.8 | 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
waj has quit [Quit: Leaving.]
crystal-gh has joined #crystal-lang
<crystal-gh> [crystal] ismaelga opened pull request #396: Use https url instead of ssh for clone (gh-pages...patch-1) http://git.io/b4jJ
crystal-gh has left #crystal-lang [#crystal-lang]
asterite has joined #crystal-lang
zamith has joined #crystal-lang
<zamith> asterite: have you seen my tweet at you?
<zamith> there's some interesting stuff on mocks
<asterite> About mockito?
<zamith> yes
<asterite> I’ll read it. Thanks :)
<zamith> I'll also look into it
<zamith> but already I see mock(List.class)
<zamith> so a mock has a type
waj has joined #crystal-lang
bcardiff has joined #crystal-lang
<asterite> Yes, in statically compiled languages you creat a mock from a class specification, so you can know the types in advance
asterite has quit [Quit: asterite]
asterite has joined #crystal-lang
crystal-gh has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 1 new commit to master: http://git.io/bBmN
<crystal-gh> crystal/master 0587ea4 Ary Borenszweig: Fixed #394: Can't instantiate a generic class with initializer argument with default value
crystal-gh has left #crystal-lang [#crystal-lang]
asterite has quit [Quit: asterite]
zamith has quit [Quit: Be back later ...]
travis-ci has joined #crystal-lang
<travis-ci> manastech/crystal#1926 (master - 0587ea4 : Ary Borenszweig): The build passed.
travis-ci has left #crystal-lang [#crystal-lang]
asterite has joined #crystal-lang
asterite has quit [Client Quit]
orliesaurus has joined #crystal-lang
<orliesaurus> HALLO
<orliesaurus> IM HEAR 2 ACQUIRE CRYSTALZ
<orliesaurus> hi leafybasil
<leafybasil> yo!
<orliesaurus> i was looking for you on the gc channel
<orliesaurus> but u werent there
<orliesaurus> woopsie
weskinner has joined #crystal-lang
crystal-gh has joined #crystal-lang
<crystal-gh> [crystal] asterite closed pull request #396: Use https url instead of ssh for clone (gh-pages...patch-1) http://git.io/b4jJ
crystal-gh has left #crystal-lang [#crystal-lang]
weskinner has quit [Ping timeout: 246 seconds]
waj has quit [Quit: Leaving.]
waj has joined #crystal-lang
waj has quit [Quit: Leaving.]
bcardiff has quit [Quit: Leaving.]
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]
zamith has joined #crystal-lang
zamith_ has joined #crystal-lang
zamith has quit [Ping timeout: 250 seconds]
leafybasil has quit [Remote host closed the connection]
leafybasil has joined #crystal-lang
asterite has joined #crystal-lang
bcardiff has joined #crystal-lang
waj has joined #crystal-lang
bcardiff has quit [Quit: Leaving.]
bcardiff has joined #crystal-lang
<jhass> >> lib C; fun equal = bar(); end;
<DeBot> jhass: Sorry, that took too long.
<jhass> heh
<jhass> >> lib C; fun equal = bar(); end;
<DeBot> jhass: nil
<jhass> mmh
<jhass> oh
<jhass> >> lib C; struct B; fun equal = bar(); end; end;
<DeBot> jhass: Syntax error in eval:3: expecting token ':', not 'equal'
<jhass> :(
<jhass> asterite: any chance to bind C functions to structs?
<asterite> Mmm… Maybe, I don’t know
<asterite> There isn’t such thing in C
<asterite> Why do you need it?
<asterite> In fact, after some days ago C structs inherit Struct, so they are real “objects” and have methods (like to_s)
<asterite> So it’s something we could add :)
<asterite> But one usually creates wrappers for those, so end users always program at the crystal level
<jhass> gobject uses structs to represent for example objects and returns me the method names unprefixed
<jhass> so it would be nice to not have to guess the prefix
<asterite> I see
<jhass> so I have it generating struct BaseInfo; ....; fun get_name = g_base_info_get_name(...); end; for example currently
asterite has quit [Quit: asterite]
weskinner has joined #crystal-lang
waj1 has joined #crystal-lang
waj has quit [Ping timeout: 245 seconds]
zamith_ has quit [Ping timeout: 244 seconds]
waj has joined #crystal-lang
waj1 has quit [Ping timeout: 246 seconds]
leafybasil has quit [Remote host closed the connection]
bcardiff1 has joined #crystal-lang
bcardiff has quit [Ping timeout: 240 seconds]
r20 has joined #crystal-lang
r20 has quit [Client Quit]
bcardiff1 has quit [Remote host closed the connection]
bcardiff has joined #crystal-lang
waj1 has joined #crystal-lang
waj has quit [Ping timeout: 256 seconds]
shama has joined #crystal-lang
waj has joined #crystal-lang
waj1 has quit [Ping timeout: 245 seconds]
bcardiff has quit [Quit: Leaving.]
<jhass> >> lib M; fun foo() : A; struct A; end; end;
<DeBot> jhass: Error in line 3: undefined constant A (did you mean 'M'?)
<jhass> :(
leafybasil has joined #crystal-lang
crystal-gh has joined #crystal-lang
<crystal-gh> [crystal] asterite pushed 8 new commits to master: http://git.io/baJl
<crystal-gh> crystal/master 67af953 Ary Borenszweig: Added Enum#hash
<crystal-gh> crystal/master 587c102 Ary Borenszweig: Give compile-time error on `Foo.new as Bar` if `Bar < Foo`, even if Bar was never instantiated
<crystal-gh> crystal/master c6e096c Ary Borenszweig: Allow to use a C typedefed function as a block arg type
crystal-gh has left #crystal-lang [#crystal-lang]
travis-ci has joined #crystal-lang
<travis-ci> manastech/crystal#1928 (master - 5a09d12 : Ary Borenszweig): The build passed.
travis-ci has left #crystal-lang [#crystal-lang]
waj has quit [Quit: Leaving.]
zamith_ has joined #crystal-lang
DeBot has quit [Quit: Crystal]
DeBot has joined #crystal-lang
DeBot has quit [Client Quit]
DeBot has joined #crystal-lang
shama has quit [Quit: (╯°□°)╯︵ɐɯɐɥs]