Actions
Feature #6263
closedSimple access to toplevel object (main)
Status:
Feedback
Assignee:
-
Target version:
-
Description
=begin
Maybe I miss something, but why is there no way to get toplevel object easily. Only way seems
to be:
main = eval('self', TOPLEVEL_BINDING)
Would be nice if there were a simple way, maybe special global (({$main}))
would be good choice.
=end
Updated by nobu (Nobuyoshi Nakada) almost 12 years ago
- Description updated (diff)
- Status changed from Open to Feedback
It's simple, because no one wanted it ever.
Why do you want?
Would be nice if there were a simple way, maybe special global
$main
would be good choice.
Why don't you set it?
Updated by yhara (Yutaka HARA) over 11 years ago
- Target version changed from 2.0.0 to 2.6
Actions
Like0
Like0Like0Like0