<elia>
the only gotcha is that you do MyClass.$new() instead of new MyClass()
<elia>
(or MyClass.new() if you add `class Class; alias_native :new, :new; end`
tybenz has quit [Read error: Connection reset by peer]
tybenz1 has joined #opal
<elia>
adambeynon_, any reason there's unpublished stuff in the opalrb.org repo?
<elia>
adambeynon_, also if you want I can do the 0.6 release
mneorr has joined #opal
<meh`>
elia, the reason is the documentation doesn't apply to the released versio
<meh`>
n
<elia>
meh`, k, makes sense
<elia>
let's push 0.6 then!
<elia>
:)
<elia>
adambeynon_, ^^^^
ryanstout has joined #opal
e_dub has quit [Ping timeout: 240 seconds]
e_dub has joined #opal
edub has joined #opal
e_dub has quit [Ping timeout: 264 seconds]
vchistik has joined #opal
vchistik has quit [Ping timeout: 240 seconds]
<adambeynon_>
hi elia . yeap, lots of 0.6.0 specific stuff there. kinda bad how long ago it was committed vs how long ago 0.6 should have been released
<adambeynon_>
ryanstout: I saw your comment a couple of days ago about performance of class lookups
<adambeynon_>
is it a big bottleneck?
<ryanstout>
adambeynon_: not huge
<ryanstout>
actually, not really that big, I thought it was a bigger issue than it was
<adambeynon_>
ryanstout: good to know. It is slower than I would like, and there are possibly some optimizations
<adambeynon_>
also for super lookups
<adambeynon_>
couple of ideas could get those really snappy
mneorr has quit [Remote host closed the connection]
<ryanstout>
cool
mneorr has joined #opal
mneorr has quit [Ping timeout: 252 seconds]
mneorr has joined #opal
edub has quit [Ping timeout: 264 seconds]
e_dub has joined #opal
<ryanstout>
adambeynon_: have you ever run into this behavior? I'm building validations in Volt, so you can include a module and get validations, and I'm using def included(base) ; base.extend... to get the class methods in there. But any class variables I setup don't exist on the main class don't exist, but only in MRI.
<adambeynon_>
ryanstout: I think our implementation of class variables is slightly/very broken
<adambeynon_>
they dont get inherited properly
<adambeynon_>
and I think actually they act more like global vars
<ryanstout>
it sounds like MRI's is sort of broken in the case I described
<ryanstout>
I found an article saying the other implementations (and ruby spec) define it as expected
<adambeynon_>
ryanstout: to be honest, I never use them, so im not 100% sure how they work
<ryanstout>
I've used them for a few things and its worked so far