<ua_>
I kinda wonder why he's set on compiled language
lucf117 has quit [Remote host closed the connection]
Guest60 has joined #crystal-lang
Guest60 has quit [Client Quit]
ur5us has quit [Ping timeout: 255 seconds]
<FromGitter>
<HertzDevil> "splats" in the macro language for the most part are just aliases of `join`
<FromGitter>
<HertzDevil> they are not to be confused with ast node inspection
<kevinsjoberg>
Is this a bug or not? https://play.crystal-lang.org/#/r/bjk8 I know @Blacksmoke16 was playing around with this a bit yesterday, but I don't know for a fact if its a bug or a limitation. Would like to try fix it if its a bug.
<kevinsjoberg>
Perhaps I should fail it as a bug in upstream and see what the outcome is?
<kevinsjoberg>
file*
<FromGitter>
<wyhaines> Your `add_b` does work. What fails is actually the puts. β β Add a macro line to show you B after you assign to it: β β ``` {% β B[key] = { type: @type.name, value: value } β pp B β %}``` ... [https://gitter.im/crystal-lang/crystal?at=60ee96c57b5a415e65e58c45]
<kevinsjoberg>
@wyhaines, sorry I should have been clear. Yes, the macro works. I know the `puts` is the culprit, but I'd still expect it to work.
<kevinsjoberg>
Why is it breaking upon trying to access the constant at runtime?
<FromGitter>
<wyhaines> The error is being thrown from the c rystal_sigfault_handler, and my guess right now is that there is some sort of loop that is entered in the compiled code, but not the interpreted code, which is why there is the behavior difference. β β I'd be curious to see if it still fails on the current crystal main branch, since at least some of that code has changed a little.
ur5us has joined #crystal-lang
elf_fortrez has joined #crystal-lang
mfiano has joined #crystal-lang
elf_fortrez has quit [Ping timeout: 246 seconds]
<mfiano>
Hello :)
<mfiano>
New user here. How long has crystal-lang.org been down?
<jhass[m]>
Seems up for me :)
<mfiano>
Odd. It is down for me both at home and at work. Secure connection failed due to PR_END_OF_FILE_ERROR
<jhass[m]>
maybe some common "security software"?
<kevinsjoberg>
Up for me as well.
<mfiano>
I don't have any such thing, but finally seems to work now and I did nothing.
<mfiano>
Sorry for the noise :)
<FromGitter>
<alexherbo2> do you have an example of use for iterator `of`?
<FromGitter>
<HertzDevil> `Unhandled exception: can't execute `__temp_499[0] = 1` at eval:1:5: `1` has no type (Exception)`
<FromGitter>
<lodenos> Iβve a little question about `Int128` how workβs behing thatβs use SSE4 or not ?
<kevinsjoberg>
@HertzDevil should it break though?
<kevinsjoberg>
Looking at the compiler code, itβs clear MacroId is the culprit, but I still think it should be able to deduce the type here.
elf_fortrez has joined #crystal-lang
avane has quit [Ping timeout: 258 seconds]
<mfiano>
Curious, why does crystal not have traditional block-level symbol table semantics?
<FromGitter>
<Blacksmoke16> :shrug: maybe a better question for the forums?
elf_fortrez has quit [Ping timeout: 246 seconds]
terminalpusher has joined #crystal-lang
<terminalpusher>
where can I watch the recorded video of the Crystal 1.0 conference?
<FromGitter>
<Blacksmoke16> they're not released publicly yet
<terminalpusher>
alright then I will wait for longer
terminalpusher has quit [Remote host closed the connection]
f1refly has quit [Ping timeout: 258 seconds]
f1refly has joined #crystal-lang
avane has joined #crystal-lang
jcs has joined #crystal-lang
ur5us has joined #crystal-lang
<FromGitter>
<RespiteSage> Is there any way to use a module with `macro included` to include an inner class in a generic class which has an instance variable of the type of that generic class?
<FromGitter>
<RespiteSage> That was complicated to write, so here's an example: https://carc.in/#/r/bjqq
ur5us has quit [Remote host closed the connection]