<FromGitter>
<mattrberry> Hmm I'll have to test that! I'm busy now but I'll look over that in 8 hours or so! Without diving into the implementation, what's the expected behavior you would hope for if invariants were defined in both? I'd say the invariants from both should be applied and maintained
<FromGitter>
<Groogy> Yepp
<FromGitter>
<Groogy> That's pretty much it
<FromGitter>
<Groogy> and on overload of methods, the expected behaviour is that unless you call super, the old contracts do not apply (but I believe this should work out of the box)
<FromGitter>
<Groogy> I'm more worried on how the invariants generated method is overwritten
mps has joined #crystal-lang
<FromGitter>
<mattrberry> What would you like to happen if the parent and child define invariants that strictly conflict?
<FromGitter>
<Groogy> Nothing, I'd call that user error
dwdv has quit [Ping timeout: 265 seconds]
f1refly has joined #crystal-lang
f1reflyylmao has quit [Ping timeout: 260 seconds]
gangstacat has quit [Remote host closed the connection]
gangstacat has joined #crystal-lang
return0e_ has joined #crystal-lang
return0e has quit [Ping timeout: 268 seconds]
<FromGitter>
<watzon> Merry Christmas everyone. May all your specs pass.
_whitelogger has joined #crystal-lang
_whitelogger has joined #crystal-lang
<FromGitter>
<grkek> Merry Christmas
<FromGitter>
<jaysneg> Hi, how to compile crystal program for orange pi?
<FromGitter>
<grkek> Using a cross-compiler probably ?
<FromGitter>
<jaysneg> It write error .o: file not recognized: file format not recognized
<FromGitter>
<grkek> can you run
<FromGitter>
<grkek> file *.o
<FromGitter>
<grkek> and show us the info about the file
<FromGitter>
<grkek> Can you define a class inside of a class ?
_whitelogger has joined #crystal-lang
<FromGitter>
<grkek> How to find out if the class has a subclass ?
ur5us has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 260 seconds]
alexherbo2 has joined #crystal-lang
dwdv has joined #crystal-lang
<FromGitter>
<Groogy> @grkek yes you can define a class inside of a class. How do you mean find out if a class has a subclass? Do you mean through a macro find out if there's a class inheriting from this one?
<FromGitter>
<grkek> no no
<FromGitter>
<grkek> find out if there is a class defined in my class
<FromGitter>
<grkek> ?
<FromGitter>
<Groogy> Ah yes a bit tricky but you can. There's no method that returns something easily for you
<FromGitter>
<Groogy> but you can use @type.constants to find all constants defined in the class. Which would include any types defined in it as well but you won't know what sort of constant it is
Yxhuvud has quit [Read error: Connection reset by peer]
return0e_ has quit [Ping timeout: 240 seconds]
return0e has joined #crystal-lang
alexherbo2 has quit [Ping timeout: 258 seconds]
return0e_ has joined #crystal-lang
<FromGitter>
<grkek> Piss
return0e has quit [Ping timeout: 268 seconds]
duane has quit [Remote host closed the connection]
<FromGitter>
<absolutejam_gitlab> @grkek I threw together a Phoenix backend for websockets the other day
<FromGitter>
<absolutejam_gitlab> was a super easy experience 🆗
<FromGitter>
<Blacksmoke16> @grkek think the solution for setting the response status for now will be allowing the user to do like `def some_action(response : HTTP::Server::Response)` type an action arg as a response
<FromGitter>
<Blacksmoke16> then they could do `response.status = xxx`
<FromGitter>
<randiaz95> Bruh, Kemal also is fun @absolutejam_gitlab
<FromGitter>
<grkek> @randiaz95 Bruh my framework > kemal
<FromGitter>
<grkek> B_)
<FromGitter>
<grkek> maybe
DTZUZO has joined #crystal-lang
<FromGitter>
<nsuchy> Will there be a new Crystal release today in the spirit of Christmas?
<raz>
is there a sane way to get the currently executing method name with a macro? (i'm pondering to write a logger that includes file/line-no/method as context)