<hosiawak>
does anyone know if the short lambda syntax (from 1.9) is supported in Rubinius ? I'm getting expecting keyword_do_LAMBDA or tLAMBEG in Rubinius 2.2.10 on this code: f = -> (x) { } - I tried looking in current open issues but cannot find it
<hosiawak>
ok, 2.2.10 is not the latest release, trying 2.5.8 :)
dimday has quit [Ping timeout: 260 seconds]
_whitelogger____ has joined #rubinius
cremes has quit [Read error: Connection reset by peer]
_whitelogger___ has quit [Ping timeout: 240 seconds]
cremes_ is now known as cremes
_whitelogger____ has joined #rubinius
meh` has joined #rubinius
hosiawak has quit [Ping timeout: 255 seconds]
nirvdrum has joined #rubinius
cremes has quit [Quit: cremes]
cpuguy83 has left #rubinius [#rubinius]
benlovell has joined #rubinius
GitHub150 has joined #rubinius
<GitHub150>
[rubinius] kachick opened pull request #3475: String#split should trim tail empty strings when the limit is zero (master...string-split) http://git.io/vYdHl
GitHub150 has left #rubinius [#rubinius]
nirvdrum has quit [Ping timeout: 272 seconds]
nirvdrum has joined #rubinius
cremes has joined #rubinius
eregon has quit [Quit: No Ping reply in 180 seconds.]
swistak35 has quit [Ping timeout: 265 seconds]
swistak35 has joined #rubinius
benlovell has joined #rubinius
benlovell has quit [Read error: Connection reset by peer]
eregon has joined #rubinius
dbussink has quit [Ping timeout: 252 seconds]
dbussink has joined #rubinius
GitHub13 has joined #rubinius
<GitHub13>
[rubinius] jc00ke closed pull request #3475: String#split should trim tail empty strings when the limit is zero (master...string-split) http://git.io/vYdHl
kfpratt has quit [Read error: Connection reset by peer]
guilleiguaran__ has quit [Remote host closed the connection]
machty has quit [Remote host closed the connection]
lopex has quit [Remote host closed the connection]
Guest85414______ has quit [Remote host closed the connection]
pitr-ch has joined #rubinius
benlovell has quit [Ping timeout: 250 seconds]
_kfpratt has quit [Remote host closed the connection]
Guest85414______ has joined #rubinius
benlovell has joined #rubinius
pitr-ch has quit [Ping timeout: 240 seconds]
pitr-ch has joined #rubinius
benlovell has quit [Read error: Connection reset by peer]
guilleiguaran__ has joined #rubinius
GitHub21 has joined #rubinius
<GitHub21>
[rubinius] kachick opened pull request #3476: Fix Range#bsearch for matching end value in find-minimum mode (master...range-bsearch) http://git.io/vYFjW
GitHub21 has left #rubinius [#rubinius]
lopex has joined #rubinius
pitr-ch has quit [Ping timeout: 265 seconds]
pitr-ch has joined #rubinius
pitr-ch has quit [Ping timeout: 252 seconds]
pitr-ch has joined #rubinius
tenderlove has joined #rubinius
pietr0 has joined #rubinius
machty has joined #rubinius
bb010g has quit [Write error: Connection reset by peer]
<GitHub198>
[rubinius] kachick opened pull request #3477: Add a C-API "rb_hash_clear" (master...capi-rb_hash_clear) http://git.io/vYblV
GitHub198 has joined #rubinius
GitHub198 has left #rubinius [#rubinius]
tenderlove has quit [Ping timeout: 246 seconds]
tenderlove has joined #rubinius
amclain has joined #rubinius
bb010g has joined #rubinius
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
GitHub130 has joined #rubinius
<GitHub130>
[rubinius] jc00ke closed pull request #3476: Fix Range#bsearch for matching end value in find-minimum mode (master...range-bsearch) http://git.io/vYFjW
GitHub130 has left #rubinius [#rubinius]
GitHub150 has joined #rubinius
<GitHub150>
[rubinius] jc00ke pushed 2 new commits to master: http://git.io/vYbXM
<GitHub150>
rubinius/master 1b954d8 Kenichi Kamiya: Fix Range#bsearch for matching end value in find-minimum mode...
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
tenderlove has quit [Ping timeout: 272 seconds]
tenderlove has joined #rubinius
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
tenderlove has quit [Ping timeout: 252 seconds]
pitr-ch has quit [Ping timeout: 260 seconds]
tenderlove has joined #rubinius
pipework has quit [Quit: pipeworkin' it]
pipework has joined #rubinius
meh` has quit [Ping timeout: 246 seconds]
pitr-ch has joined #rubinius
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
pitr-ch has quit [Ping timeout: 255 seconds]
pitr-ch has joined #rubinius
meh` has joined #rubinius
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
mustmodify has joined #rubinius
<mustmodify>
ok Ruby geniuses. I want to call a Proc and pass in a context... is that a thing? Or are the only options to run in the calling context or the definition context?
<|jemc|>
mustmodify: what specifically do you mean by "context" self/method-lookup? constants? locals?
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
nirvdrum has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 256 seconds]
tenderlove has joined #rubinius
meh` has quit [Ping timeout: 250 seconds]
<mustmodify>
Well I think the answer is that, short of using FFI, you can't. But I mean a Binding.
<mustmodify>
You can use eval( string, #binding) but apparently there isn't an equivalent for a Proc, which is ... genius.
<|jemc|>
mustmodify: which parts of the binding are you concerned about specifically? self/method-lookup? constants? locals?
<mustmodify>
So I'm writing a DSL to make data changes. And I would like to have some helper methods available. It makes the most sense to me that I would put all helper methods in a Module, get that module's binding, and pass that in, rather than having the helper methods mixed in with the DSL-related methods. Though that's what I ended up doing.
<|jemc|>
mustmodify: that is typically done with something like `dsl_helper_object.instance_eval(&block)`
<mustmodify>
Hm... yep, that's another good option.
<|jemc|>
that works for self/method-lookup, but not for constants or locals (which is usually what you want in that situation)
<mustmodify>
I was instance_evaling in the DSL but that's better.
cremes has quit [Ping timeout: 252 seconds]
mustmodify has left #rubinius [#rubinius]
nirvdrum has joined #rubinius
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
meh` has joined #rubinius
nirvdrum has quit [Remote host closed the connection]
tenderlove has quit [Ping timeout: 240 seconds]
tenderlove has joined #rubinius
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
tenderlove has quit [Read error: Connection reset by peer]
tenderlove has joined #rubinius
tenderlove has quit [Remote host closed the connection]