From: "D. Deryl Downey" Date: 2013-03-26T15:47:20+09:00 Subject: Re: Need help on Kernel#eval This is a multi-part message in MIME format. --------------080405000801060604050804 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Why? To what purpose? What exactly are you doing? What does this apply to? What exactly are you trying to do? Show us the code where this would matter to you. What *exactly* are you having trouble understanding? In what context did you run across this? > Love U Ruby > March 26, 2013 2:33 AM > From the link -> http://www.ruby-doc.org/core-2.0/Binding.html > > Objects of class Binding encapsulate the execution context at some > particular place in the code and retain this context for future use. The > variables, ***methods, value of self, and possibly an iterator block > that can be accessed in this context are all retained***. Binding > objects can be created using Kernel#binding, and **are made available to > the callback of Kernel#set_trace_func**. > > can anyone help me to understand the fact by single examples of each the > *** lines above? > -- D. Deryl Downey "The bug which you would fright me with I seek" - William Shakespeare - The Winter's Tale, Act III, Scene II - A court of Justice. --------------080405000801060604050804 Content-Type: multipart/related; boundary="------------070202010006070003050206" --------------070202010006070003050206 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit
Why? To what purpose? What exactly are you doing? What does this apply to? What exactly are you trying to do? Show us the code where this would matter to you.

What *exactly* are you having trouble understanding? In what context did you run across this?

March 26, 2013 2:33 AM
From the link -> http://www.ruby-doc.org/core-2.0/Binding.html

Objects of class Binding encapsulate the execution context at some
particular place in the code and retain this context for future use. The
variables, ***methods, value of self, and possibly an iterator block
that can be accessed in this context are all retained***. Binding
objects can be created using Kernel#binding, and **are made available to
the callback of Kernel#set_trace_func**.

can anyone help me to understand the fact by single examples of each the
*** lines above?


--
D. Deryl Downey

 "The bug which you would fright me with I seek" - William Shakespeare - The Winter's Tale, Act III, Scene II - A court of Justice.
--------------070202010006070003050206 Content-Type: image/jpeg; x-apple-mail-type=stationery; name="compose-unknown-contact.jpg" Content-Transfer-Encoding: base64 Content-ID: Content-Disposition: inline; filename="compose-unknown-contact.jpg" /9j/4AAQSkZJRgABAQEARwBHAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEC AQEBAQEBAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/2wBDAQEBAQEBAQICAgICAgIC AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgL/wAAR CAAZABkDAREAAhEBAxEB/8QAGAAAAwEBAAAAAAAAAAAAAAAABgcICQr/xAA0EAABAwMCAgUK BwAAAAAAAAACAQMEBQYRABITIQcUMUF2CBUXIjI2N0JRtVRWkZOV0dL/xAAYAQEAAwEAAAAA AAAAAAAAAAADAAEEAv/EACQRAAICAAQGAwAAAAAAAAAAAAABAhEDMrHREyExM0FxgfDx/9oA DAMBAAIRAxEAPwDuEt+gW/ULet6oVC3rfqNQqFv0OfPn1GhUqfOmzZtKZlS5UqZMaNwzNwiJ VIl7eXLCaZIGwBl3TY8epPx2+jy2ZNPjvkwc9uhW8j7nCPhvOsQliYIeS7cvCpp8o50qwrC4 v3lsNSDbdmTEhvs2tahxpfV3WnmbbozJEw/gwdadbYExVRXKEKoSdvJcaOSqxE7/AAiX0gXx +a69/JSf9alIlste0VzaNpeFrcT9KKymotyiaZ0KRCnzacoE7Kjzn4gi2KqUh3jqDHDHv4mR UfruTWlMzlVUKIVNp9GguEJnAh0+IZjyAiisgyRDnu5azS8miKqjOTVkKqS/psG37fo1Fbab eg25b8eZPeFJBBJSjMG5HjMeyihnaauZwe4OGiju13GAcpOwBeN+U8/IkGbsiS8b7ryogmbz hbyc9REROfZhERO5ETShjPtvpGqTUyLErytS4siSwx5x2tRH4hPOI0DkjZtaJtFxuVEbIUUi yeNujlBUJGbJN6nM/Cyf2Hf60YgjvKA+NPSP4gT7axpcPtr51YWJnYn9dnAQWl722p4ot37y zqnlfp6FrqbwawG8/9k= --------------070202010006070003050206-- --------------080405000801060604050804--