Hi,
On Jan 27, 2017, at 9:59 AM, Siemen Baader <siemenbaader@gmail.com> wrote:
Hi all,
in Nautilus, `self` is always the current class instance. This is great for coding class side methods because we can test code fragments live in the editor, but for instance side methods I have not seen the usefulness of it. At times it can even be confusing and cause errors since a "print it" of it looks quite like an instance (`a Listener` vs `Listener`).
Is there a rationale why `self` in instance view does not raise an error or is nil?
That is because you can write: self new and work with an instance.
And, more importantly, could there be a way to set it to a specific value (= can we browse a class with self bound to an specific instance). This would resemble programming in the debugger, but provide the overview that a class browser provides.
You can do that to some extent in the Meta tab of the inspector. Cheers, Doru
cheers, Siemen
-- www.tudorgirba.com www.feenk.com "We cannot reach the flow of things unless we let go."