Hi,
Need suggestions for a core-extension method name. Currently Ruby F.s
defines:
class Binding
def self
eval(‘self’)
end
end
Which has worked fine, but testing with Rubinus, it presents a problem.
Firstly, I learned I had to do:
def self
Kernel.eval('Rubinius::VariableScope.current.self', self)
end
But it blows sky high as soon as it is defined. Changing the method name
fixes it.
Any suggestions for a good name?
tcsnide
2
this
? _self_
?
On Mon, Nov 14, 2011 at 2:20 PM, Intransition [email protected]
wrote:
Any suggestions for a good name?
–
Sincerely,
Isaac S.
Section C-4B Vice Chief, Order of the Arrow
Vice Chief of Administration, Tecumseh #65
Eagle Scout
tcsnide
3
Did you even try with binding.self
with rubinius before you tried to
define the method? it’s ALREADY DEFINED in rubinius it’s in core.
Which has worked fine, but testing with Rubinus, it presents a problem.
Firstly, I learned I had to do:
def self
Kernel.eval('Rubinius::VariableScope.current.self', self)
end
But it blows sky high as soon as it is defined. Changing the method name
fixes it.
Any suggestions for a good name?
tcsnide
4
Why would i do that? It’s too damn good to be true, isn’t it!?
Thanks.
tcsnide
5
Da: Intransition [mailto:[email protected]]
Inviato: mercoled 16 novembre 2011 20:05
A: ruby-talk ML; [email protected]
Cc: ruby-talk ML; [email protected]
Oggetto: Re: Binding#self
Why would i do that? It’s too damn good to be true, isn’t it!?
Thanks.
–
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu’ IMAP, POP3 e
SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
ING DIRECT Conto Arancio. 4,20% per 12 mesi, zero spese, aprilo in due
minuti!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11921&d=29-12
tcsnide
6
Da: Intransition [mailto:[email protected]]
Inviato: luned 14 novembre 2011 20:21
A: ruby-talk ML; [email protected]
Oggetto: Binding#self
Hi,
Need suggestions for a core-extension method name. Currently Ruby F.s
defines:
class Binding
def self
eval(‘self’)
end
end
Which has worked fine, but testing with Rubinus, it presents a problem.
Firstly, I learned I had to do:
def self
Kernel.eval('Rubinius::VariableScope.current.self', self)
end
But it blows sky high as soon as it is defined. Changing the method name
fixes it.
Any suggestions for a good name?
–
Caselle da 1GB, trasmetti allegati fino a 3GB e in piu’ IMAP, POP3 e
SMTP autenticato? GRATIS solo con Email.it http://www.email.it/f
Sponsor:
Conto Arancio al 4,20%. Zero spese e massima liberta’, aprilo in due
minuti!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=11919&d=29-12