I have taken the plunge into the Void.
I have used create_interface_objects as suggested, but I get a VEVI error. I think it is from the argument `Current'.
I pass the argument so that it can be used in a `show_modal_to_window' instruction.
Now, object `main_window' references `weather_graph', passing `Current' as argument. Object `weather_graph' initialises entity `window' with this (reverse) reference to `main_window'.
[
OBSERVATION and QUESTION 1: We have a cycle of references, so is
it logically impossible to build all without at least one
detached entity?
]
So, we have in MAIN_WINDOW, the feature
create_interface_objects
do
...
create weather_graph.make(Current)
...
end
weather_graph: WEATHER_GRAPH
QUESTION 2: Is it the passing of argument `Current' that triggers this error?
==============================================================
2 VEVI: Variable is not properly set. Attribute: weather_graph: WEATHER_GRAPH from MAIN_WINDOW MAIN_WINDOW.create_interface_objects (root_cluster) 266, 31
Error code: VEVI
Error: variable is not properly set.
What to do: ensure the variable is properly set by the corresponding
setter instruction.
Class: MAIN_WINDOW
Feature: create_interface_objects
Creation procedure: default_create declared in EV_ANY
Attribute: weather_graph: WEATHER_GRAPH from MAIN_WINDOW
Line: 266
-> create weather_graph.make (Current)
create sun_graph.make (Current)
--
Peter Horan Faculty of Science and Technology
[hidden email] Deakin University
+61-3-5221 1234 (Voice) Geelong, Victoria 3217, AUSTRALIA
+61-4-0831 2116 (Mobile)
-- The Eiffel guarantee: From specification to implementation
-- (
http://www.cetus-links.org/oo_eiffel.html)