blackbeard420 has quit [Quit: ZNC 1.7.5 - https://znc.in]
blackbeard420 has joined #crystal-lang
darkstardevx has joined #crystal-lang
dwdv has quit [Ping timeout: 240 seconds]
<postmodern>
Blacksmoke16, CRC81Wire = CRC8_1Wire within module Digest, then in a spec Spectator.describe Digest::CRC81Wire ... it { expect(described_class).to eq(Digest::CRC8_1Wire) }
<FromGitter>
<Blacksmoke16> you know `alias` is a thing
<FromGitter>
<Blacksmoke16> versus redefining the constant
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #crystal-lang
Human_G33k has joined #crystal-lang
HumanG33k has quit [Ping timeout: 256 seconds]
<postmodern>
ah that's right
wakatara has joined #crystal-lang
wakatara has quit [Quit: Using Circe, the loveliest of all IRC clients]
ur5us has quit [Ping timeout: 240 seconds]
<FromGitter>
<grkek> @Blacksmoke16 Oh my I knew something was up with the compiler
_ht has joined #crystal-lang
_ht has quit [Quit: _ht]
alexherbo2 has joined #crystal-lang
Seich has quit [*.net *.split]
antoszka has quit [*.net *.split]
daemonwrangler has quit [*.net *.split]
justinmcp_ has quit [*.net *.split]
olbat has quit [*.net *.split]
f1refly has quit [*.net *.split]
hpyc9 has quit [*.net *.split]
Xeago has quit [*.net *.split]
lvmbdv has quit [*.net *.split]
go|dfish has quit [*.net *.split]
early has quit [*.net *.split]
woodruffw has quit [*.net *.split]
repo has quit [*.net *.split]
twistedpixels has quit [*.net *.split]
edr has quit [*.net *.split]
dom96 has quit [*.net *.split]
adam12 has quit [*.net *.split]
olbat[m] has quit [*.net *.split]
dannyAAM has quit [*.net *.split]
juanfra_ has quit [*.net *.split]
issyl0 has quit [*.net *.split]
oz has quit [*.net *.split]
raz has quit [*.net *.split]
bougyman has quit [*.net *.split]
snapcase has quit [*.net *.split]
Human_G33k has quit [*.net *.split]
_whitelogger has joined #crystal-lang
gangstacat has joined #crystal-lang
blackbeard420 has joined #crystal-lang
yxhuvud has joined #crystal-lang
maxpowa has joined #crystal-lang
commavir has joined #crystal-lang
FromGitter has joined #crystal-lang
dwdv has joined #crystal-lang
postmodern has quit [Quit: Leaving]
Human_G33k has quit [Remote host closed the connection]
<FromGitter>
<wout> Just did some testing by splitting out `Time` and the `Time | Nil` union, and that's all working correctly.
<FromGitter>
<Blacksmoke16> the issue is `.resolve` goes out to resolve the alias's value
<FromGitter>
<Blacksmoke16> however its defined *after* the file is required, so at the time of the macro expanding it pro doesnt exist?
<FromGitter>
<wout> You're right. Just moved the aliasses to the top of the file and the error goes away. But then I'm getting another one which is harder to solve:
<FromGitter>
<Blacksmoke16> try requiring all your other files before you require the macro
<FromGitter>
<wout> Let's see if I can make that work..
<FromGitter>
<oz> Is anyone working on matrix client or server libs [in crystal]?
<FromGitter>
<j8r> `Error: class variables can only be annotated with ThreadLocal`...
<FromGitter>
<j8r> How do I annotate a top level object?
<FromGitter>
<Blacksmoke16> are you trying to annotate it as `ThreadLocal`?
<FromGitter>
<wout> @Blacksmoke16 I think there is no way to that. The macro is part of the a `Base` struct from which most other structs inherit. So moving the `Base` to the end of the loading sequence, throws a `Error: undefined constant`. Extracting the macro into a separate file, same issue.
<FromGitter>
<Blacksmoke16> each child struct would/should prob have to do `require "./base"`
<FromGitter>
<Blacksmoke16> or something along those lines
<FromGitter>
<wout> Aaaah, that might be it.
<FromGitter>
<j8r> I don't understand the error:/
<FromGitter>
<Blacksmoke16> got an example of what you're trying to do?
<FromGitter>
<Blacksmoke16> @j8r ahh, i forgot that was a bug 😬
<FromGitter>
<Blacksmoke16> is that a valid url?
<FromGitter>
<anykeyh> nope, I'm just forcing failure
<FromGitter>
<anykeyh> I've a live app going wild whenever mailgun reject my connection ;)
<FromGitter>
<Blacksmoke16> got some example code? just seems like you would have to rescue that exception no?
<FromGitter>
<anykeyh> I think it's more related to crystal-email shard, I'll continue to investigate, unless someone has experienced IO failure which eventually breaks everything 😃
<FromGitter>
<Blacksmoke16> otherwise it would bubble up
sz0 has quit [Quit: Connection closed for inactivity]
ur5us has joined #crystal-lang
teardown has joined #crystal-lang
_ht has quit [Quit: _ht]
sagax has quit [Read error: Connection reset by peer]
<FromGitter>
<wontruefree> We are about to hear form Jason Malcolm about running Crystal in production if anyone wants to join https://zoom.us/j/3541015445