Wrong description of {MEMORY}.objects_instance_of_type
24 views
Skip to first unread message
Rosivaldo Fernandes Alves
unread,
Apr 23, 2021, 11:33:13 AM4/23/21
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Eiffel Users
The class MEMORY has the following features:
objects_instance_of (an_object: ANY): SPECIAL [ANY]
-- Objects that have same dynamic type as `an_object'.
do
Result := objects_instance_of_type (an_object.generating_type.type_id)
ensure
instance_free: class
end
objects_instance_of_type (a_type_id: INTEGER): SPECIAL [ANY]
-- Objects that have same dynamic type as `an_object'.
do
Result := find_instance_of (a_type_id, special_any_dynamic_type)
ensure
instance_free: class
end
The description of objects_instance_of_type seems to have been copied &
pasted from objects_instance_of, which rendered objects_instance_of_type
description wrong.
Considering that "`variable`" is akind of standard notation in Eiffel, I wonder why tools cannot automatically check and warn...
(if the variable mentioned does not exist)