<FromGitter>
<bew> @dscottboggs_gitlab yeah it print the macro expansion at the moment of the debug macro method
<FromGitter>
<bew> You can put it in a loop, it's fun to see the expanded macro grow :p
<FromGitter>
<dscottboggs_gitlab> interesting! what about `crystal tool expand`? that was my preferred method but I think in the most recent update it broke...
<FromGitter>
<bew> Broke?
<FromGitter>
<bew> Shouldn't have
<FromGitter>
<dscottboggs_gitlab> whenever I run it, I always get *no expansion found*
<FromGitter>
<bew> You need to call it on a macro call
<FromGitter>
<bew> To see the expanded code
<FromGitter>
<dscottboggs_gitlab> yu;
trashhalo[m] has quit [Remote host closed the connection]
<FromGitter>
<dscottboggs_gitlab> hang on I'll work up a minimal example if I can
<FromGitter>
<bew> E.g on a getter call
<FromGitter>
<bew> It's 1:30 am here, need to sleep, i'll see tomorrow if you don't get an answer!
<FromGitter>
<dscottboggs_gitlab> ok no rush bro get some sleep!!
<FromGitter>
<bew> ;)
<FromGitter>
<dscottboggs_gitlab> holy shit I just discovered the `$_`yesterday and it's the best thing since sliced bread
<FromGitter>
<Blacksmoke16> hm?
<FromGitter>
<dscottboggs_gitlab> `mkdir -p /some/long/path/to/a/dir/ && cd $_`
<FromGitter>
<dscottboggs_gitlab> lands you in newly created dir
<FromGitter>
<Blacksmoke16> ah nice
trashhalo[m] has joined #crystal-lang
laaron has quit [Remote host closed the connection]
laaron has joined #crystal-lang
lucasb has quit [Quit: Connection closed for inactivity]
<FromGitter>
<dscottboggs_gitlab> @bew sorry I couldn't get a minimal example I'll come back to it tomorrow after work
<FromGitter>
<HarrisonB> Should have just tried using a range, haha. Thanks @vladfaust !
crystal-lang564 has quit [Quit: Konversation terminated!]
return0e_ has quit [Remote host closed the connection]
<FromGitter>
<kinxer> I'm trying to use an Alpine VM to build a static executable from Crystal code, however I've never created a statically-linked binary before. Are there special steps I need to take (besides the `--static` flag, of course) for static linking in general or Crystal in specific?
return0e has joined #crystal-lang
return0e has quit [Remote host closed the connection]
<FromGitter>
<kinxer> Actually, not quite the same issues, but definitely the same kind of "undefined reference" linking (?) issues, just with `libxml2`.
Yxhuvud has quit [Quit: No Ping reply in 180 seconds.]
<FromGitter>
<j8r> I forgot, there is a hack to add to your code to prevent segaults
<FromGitter>
<kinxer> Thanks, @j8r! This should help a lot.
return0e has joined #crystal-lang
duane has quit [Ping timeout: 246 seconds]
moei has quit [Quit: Leaving...]
lucasb has quit [Quit: Connection closed for inactivity]
<FromGitter>
<jwoertink> When you're inside of a macro statement in a method, is there a way to get the argument from that method like in this example?