ChanServ changed the topic of #crystal-lang to: The Crystal programming language | http://crystal-lang.org | Crystal 0.33.0 | Fund Crystal's development: http://is.gd/X7PRtI | GH: https://github.com/crystal-lang/crystal | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/ | Gitter: https://gitter.im/crystal-lang/crystal
ur5us has joined #crystal-lang
Subsentient has joined #crystal-lang
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 256 seconds]
<FromGitter> <3n-k1> This code works without the module part, but with the module part I get "Error: undefined method 'index_view' for Cwiki:Module". What am I doing wrong? ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5e8148f4ceb7644818445adc]
<FromGitter> <Blacksmoke16> It's probably a class method
<FromGitter> <Blacksmoke16> Try ->Cwiki.index_view
<FromGitter> <3n-k1> same error
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
<FromGitter> <Blacksmoke16> hmm
<FromGitter> <Blacksmoke16> that should be it
<FromGitter> <3n-k1> Here's the full code in case it's something in there ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5e8167ce922e6e03310ff484]
wmoxam_ is now known as wmoxam
wmoxam has joined #crystal-lang
wmoxam has quit [Changing host]
sz0 has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 252 seconds]
return0e_ has quit [Remote host closed the connection]
return0e_ has joined #crystal-lang
return0e_ has quit [Ping timeout: 246 seconds]
return0e has joined #crystal-lang
return0e has quit [Remote host closed the connection]
return0e has joined #crystal-lang
return0e has quit [Read error: Connection reset by peer]
lanodan has joined #crystal-lang
tankf33der has left #crystal-lang [#crystal-lang]
_ht has joined #crystal-lang
_ht has quit [Remote host closed the connection]
_ht has joined #crystal-lang
lanodan has quit [Quit: WeeChat 2.7.1]
lanodan has joined #crystal-lang
HumanG33k has joined #crystal-lang
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
xyhuvud has quit [Read error: Connection reset by peer]
yxhuvud has joined #crystal-lang
_ht has quit [Remote host closed the connection]
_ht has joined #crystal-lang
return0e has joined #crystal-lang
HumanG33k has quit [Ping timeout: 252 seconds]
HumanG33k has joined #crystal-lang
<FromGitter> <straight-shoota> @3n-k1 `index_view` is a class method, you can't call it on the module. Define it as `def self.index_view` to be able to call `Ciwiki.index_view`.
ur5us has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
deavmi has quit [Ping timeout: 256 seconds]
deavmi has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
<FromGitter> <3n-k1> That did it, thanks :)
sz0 has joined #crystal-lang
deavmi has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
deavmi has joined #crystal-lang
<FromGitter> <ImAHopelessDev_gitlab> hi
<FromGitter> <jordifreek> Hello
<FromGitter> <jordifreek> What is the best way to share data between a fiber and the main scope?
<FromGitter> <jordifreek> On this code, i can't access the array `clients` inside the fibber `handle_client` ⏎ ⏎ ```code paste, see link``` [https://gitter.im/crystal-lang/crystal?at=5e81da6447c92241cfb53d23]
<FromGitter> <jordifreek> Can i pass the `clients` array to the `handle_client` method? what if the clients has a large amount of data, should it explode with the 8mb of a fiber? Also, is `clients` passed by reference?
<yxhuvud> jordifreek: the best way is usually to use a Channel.
<FromGitter> <jordifreek> thanks @yxhuvud, all the info is inside concurrency section of hte Reference Guide?
<yxhuvud> I don't know. You may have to check the api docs as well
<FromGitter> <jordifreek> thanks
HumanG33k has quit [Remote host closed the connection]
HumanG33k has joined #crystal-lang
_whitelogger has joined #crystal-lang
asterite has joined #crystal-lang
gangstacat has joined #crystal-lang
deavmi has quit [Remote host closed the connection]
deavmi has joined #crystal-lang
deavmi has quit [Read error: Connection reset by peer]
deavmi has joined #crystal-lang
oz has quit [Quit: EOF]
Welog has quit [Ping timeout: 256 seconds]
Welog has joined #crystal-lang
oz has joined #crystal-lang
juanfra_ has quit [Ping timeout: 240 seconds]
beepdog has quit [Ping timeout: 240 seconds]
return0e has quit [Remote host closed the connection]
juanfra_ has joined #crystal-lang
beepdog has joined #crystal-lang
oz has quit [Quit: EOF]
oz has joined #crystal-lang
Welog has quit [Ping timeout: 256 seconds]
Welog has joined #crystal-lang
oprypin has quit [*.net *.split]
erdnaxeli has quit [*.net *.split]
badeball has quit [*.net *.split]
davic has quit [*.net *.split]
kevinsjoberg has quit [*.net *.split]
baweaver has quit [*.net *.split]
kevinsjoberg has joined #crystal-lang
oprypin has joined #crystal-lang
badeball has joined #crystal-lang
davic has joined #crystal-lang
baweaver has joined #crystal-lang
erdnaxeli has joined #crystal-lang
juanfra_ has quit [Ping timeout: 252 seconds]
beepdog has quit [Ping timeout: 256 seconds]
erdnaxeli has quit [Ping timeout: 240 seconds]
olbat[m] has quit [Ping timeout: 260 seconds]
watzon has quit [Ping timeout: 272 seconds]
oprypin has quit [Ping timeout: 240 seconds]
oprypin has joined #crystal-lang
olbat[m] has joined #crystal-lang
beepdog has joined #crystal-lang
juanfra_ has joined #crystal-lang
erdnaxeli has joined #crystal-lang
f1refly has joined #crystal-lang
ur5us has joined #crystal-lang
return0e has joined #crystal-lang
ur5us has quit [Ping timeout: 240 seconds]
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
<travis-ci> crystal-lang/crystal#3bdaa28 (master - Add Enumerable#empty? method (#8960)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/668913925
<DeBot> https://github.com/crystal-lang/crystal/pull/8960 (Add Enumerable#empty? method)
ur5us has joined #crystal-lang
_ht has quit [Remote host closed the connection]
f1reflyylmao has joined #crystal-lang
f1refly has quit [Ping timeout: 260 seconds]
<travis-ci> crystal-lang/crystal#bd498e6 (master - Tidy up some leftovers of #8847 (#8976)): The build passed. https://travis-ci.org/crystal-lang/crystal/builds/668969609
travis-ci has joined #crystal-lang
travis-ci has left #crystal-lang [#crystal-lang]
f1refly- has joined #crystal-lang
f1reflyylmao has quit [Ping timeout: 264 seconds]
Subsentient has quit [Remote host closed the connection]
f1refly- has quit [Ping timeout: 240 seconds]
f1refly has joined #crystal-lang
f1refly has quit [Ping timeout: 264 seconds]
lanodan has quit [Remote host closed the connection]
lanodan has joined #crystal-lang
watzon has joined #crystal-lang