Does this mean that ever widget no matter how deep in the heirarchy can simply be referenced by its name? So if this is true I then I assume I can stop thinking in terms of an object heirarchy when trying to reference widgets.
Simon
--- In
[hidden email], Peter Gummer <p-gummer@...> wrote:
>
> Colin LeMahieu wrote:
>
> > Current is the Eiffel equivalent to "this"
>
> True, but you would not write 'Current.tools_menu' to reference the
> window's Tools menu. You would simply write:
>
> tools_menu
>
> It is extremely rare in Eiffel to mention 'Current' explicitly as the
> target of call. The same is true in many other languages, actually; in
> C#, for example, I would never write 'this.ToolsMenu', except in the
> very rare case where there might be ambiguity; I would simply write
> 'ToolsMenu'. Because Eiffel's language rules prevent any such
> ambiguity, you almost never see anyone write 'Current' followed by a
> dot.
>
> - Peter Gummer
>