From: "Schüle Daniel" Date: 2006-02-02T06:41:53+09:00 Subject: Re: local variable and closure Hello Robert, > Btw, what are you trying to accomplish? Somehow I have the feeling that > your code might be more complex than needed. Especially the use of a > global variable irritates me. complexity was the intention of my code :) no really, I am playing with metaprogramming, also I wanted to know how to implement own functions like "attr_accessor" btw is there special name for this kind of functions? functions that are executed in the class scope and can refer with "self" to the class they are inside. Regards, Daniel