code should look like:
str=<<END
class aaa<br />
end<br />
END
klass = eval str
klass.new
class Klass end
returns Klass at the moment. for end, returns niln do..end returns.. wel, return, and def..end returns nil. BTW def..end should at least return a symbol of the method.. someone with an rcr please?
It's already been noted and should be taken care of in future. I don't know why they don't do ASAP. Its an easy fix w/ no back code breaking as far as I know. Perhaps they still debate symbol or method.
I agree, that as many constructs as possible return useful results. Just no good reason not to.
sorry for wrong escaping in post (dmiceman, 2003-11-28 00:28:07)
str=<<END
END
klass = eval str
klass.new
doen's it work now? (, 2003-11-28 04:25:24)
returns Klass at the moment. for end, returns niln do..end returns.. wel, return, and def..end returns nil. BTW def..end should at least return a symbol of the method.. someone with an rcr please?
scoop (transami, 2003-11-29 06:30:08)
I agree, that as many constructs as possible return useful results. Just no good reason not to.