Jimmy Johnson
2013-04-24 01:56:30 UTC
Similar to my other post.
deferred class VITP_WIDGET
inherit
EV_MODEL_WORLD
feature {NONE} -- Initialization
frozen make (a_item: like vitp_item)
-- set the item, and other stuff
feature -- Access
vitp_item: VITP_ITEM
It seems the solution is similar to what I used in the other post--add bogus creation feature and redefine default create. But, this is not desired; this class should be deferred (but cannot be because I need a creation routine) and `vitp_item' is also deferred so, again, I have to create a stupid dummy object in the redefined `default_create' which should never be called!
What am I missing here?
------------------------------------
deferred class VITP_WIDGET
inherit
EV_MODEL_WORLD
feature {NONE} -- Initialization
frozen make (a_item: like vitp_item)
-- set the item, and other stuff
feature -- Access
vitp_item: VITP_ITEM
It seems the solution is similar to what I used in the other post--add bogus creation feature and redefine default create. But, this is not desired; this class should be deferred (but cannot be because I need a creation routine) and `vitp_item' is also deferred so, again, I have to create a stupid dummy object in the redefined `default_create' which should never be called!
What am I missing here?
------------------------------------