Skip to Navigation | Skip to Content

Ref_impl_Eiffel mailing list archives

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[ref_impl_eiffel] [1190] AWB-126: In DT_TYPES, the lists of the dynamic

  • To: ref_impl_eiffel@openehr.org
  • Subject: [ref_impl_eiffel] [1190] AWB-126: In DT_TYPES, the lists of the dynamic type ids of the primitive types and primitive list types were being built by creating a prototype object of each type and then querying its dynamic type id .
  • From: svn@openehr.org
  • Date: Wed, 01 Sep 2010 03:15:24 +0100

Revision: 1190
Author:   peter.gummer
Date:     2010-09-01 03:15:23 +0100 (Wed, 01 Sep 2010)
Log Message:
-----------
AWB-126: In DT_TYPES, the lists of the dynamic type ids of the 
primitive types and primitive list types were being built by creating a 
prototype object of each type and then querying its dynamic type id. 
The primitive sequence types were done similarly, but because a 
prototype object cannot be created for a deferred type, the dynamic 
type was retrieved via a string representing that type; and in order to 
ensure that these types really existed in the system, unused local 
variables had to be declared for them.

Rather than this, we can now use TYPE.type_id to retrieve each dynamic 
type. The prototype objects, strings and unused locals are no longer 
needed. For each type, we create a TYPE object and query its type id.

(While testing that TYPE.type_id returns the same dynamic type as the 
old techniques, I noticed that the breakpoint I set in 
DT_TYPES.primitive_sequence_types was never reached. Looking at its 
callers, none of them seem to be used within ADL Workbench. This seems 
to be dead code, at least for ADL Workbench.)

Modified Paths:
--------------
    
BRANCHES/specialisation/libraries/common_libs/src/structures/data_tree/dt_types.e

_______________________________________________
Ref_impl_eiffel mailing list
Ref_impl_eiffel@openehr.org
http://lists.chime.ucl.ac.uk/mailman/listinfo/ref_impl_eiffel